Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: chromium/patches/ugly/31_remove_attribute_deprecated.patch

Issue 9290059: Initial commit of all previous Chrome build scripts. (Closed) Base URL: http://git.chromium.org/chromium/third_party/ffmpeg.git@master
Patch Set: Drop deprecated subfolder. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 diff -wurp -N orig/libavcodec/avcodec.h ffmpeg/libavcodec/avcodec.h
2 --- orig/libavcodec/avcodec.h 2011-07-12 20:50:13.692979736 -0700
3 +++ ffmpeg/libavcodec/avcodec.h 2011-07-12 20:50:13.755019764 -0700
4 @@ -526,7 +526,8 @@ enum AVChromaLocation{
5 /**
6 * LPC analysis type
7 */
8 -attribute_deprecated enum AVLPCType {
9 +//attribute_deprecated
10 +enum AVLPCType {
11 AV_LPC_TYPE_DEFAULT = -1, ///< use the codec default LPC type
12 AV_LPC_TYPE_NONE = 0, ///< do not use LPC prediction or use all zer o coefficients
13 AV_LPC_TYPE_FIXED = 1, ///< fixed LPC coefficients
14 @@ -2795,14 +2796,16 @@ typedef struct AVCodecContext {
15 * - encoding: Set by user
16 * - decoding: unused
17 */
18 - attribute_deprecated enum AVLPCType lpc_type;
19 + //attribute_deprecated
20 + enum AVLPCType lpc_type;
21
22 /**
23 * Number of passes to use for Cholesky factorization during LPC analysis
24 * - encoding: Set by user
25 * - decoding: unused
26 */
27 - attribute_deprecated int lpc_passes;
28 + //attribute_deprecated
29 + int lpc_passes;
30 #endif
31
32 /**
33 diff -wurp -N orig/libavformat/avio.h ffmpeg/libavformat/avio.h
34 --- orig/libavformat/avio.h 2011-07-12 20:50:13.703263949 -0700
35 +++ ffmpeg/libavformat/avio.h 2011-07-12 20:50:13.755019764 -0700
36 @@ -209,7 +209,8 @@ URLProtocol *av_protocol_next(URLProtoco
37 *
38 * @param size the size of the URLProtocol struct referenced
39 */
40 -attribute_deprecated int av_register_protocol2(URLProtocol *protocol, int size) ;
41 +//attribute_deprecated
42 +int av_register_protocol2(URLProtocol *protocol, int size);
43 /**
44 * @}
45 */
46 diff -wurp -N orig/libavutil/samplefmt.h ffmpeg/libavutil/samplefmt.h
47 --- orig/libavutil/samplefmt.h 2011-07-12 20:50:13.713031456 -0700
48 +++ ffmpeg/libavutil/samplefmt.h 2011-07-12 20:50:13.755019764 -0700
49 @@ -64,7 +64,7 @@ char *av_get_sample_fmt_string(char *buf
50 /**
51 * @deprecated Use av_get_bytes_per_sample() instead.
52 */
53 -attribute_deprecated
54 +//attribute_deprecated
55 int av_get_bits_per_sample_fmt(enum AVSampleFormat sample_fmt);
56 #endif
57
58 diff -wurp -N orig/libavcodec/avcodec.h ffmpeg/libavcodec/avcodec.h
59 --- orig/libavcodec/avcodec.h 2011-07-12 21:38:32.792973129 -0700
60 +++ffmpeg/libavcodec/avcodec.h 2011-07-14 12:01:26.002994746 -0700
61 @@ -3625,7 +3625,7 @@ int avcodec_get_context_defaults3(AVCode
62 *
63 * @deprecated use avcodec_alloc_context3()
64 */
65 -attribute_deprecated
66 +//attribute_deprecated
67 AVCodecContext *avcodec_alloc_context(void);
68
69 /** THIS FUNCTION IS NOT YET PART OF THE PUBLIC API!
70 @@ -3756,7 +3756,7 @@ int avcodec_default_execute2(AVCodecCont
71 *
72 * @deprecated use avcodec_open2
73 */
74 -attribute_deprecated
75 +//attribute_deprecated
76 int avcodec_open(AVCodecContext *avctx, AVCodec *codec);
77 #endif
78
79 diff -wurp -N orig/libavformat/avformat.h ffmpeg/libavformat/avformat.h
80 --- orig/libavformat/avformat.h 2011-07-12 15:42:11.000000000 -0700
81 +++ ffmpeg/libavformat/avformat.h 2011-07-14 12:00:55.842983958 -0700
82 @@ -1107,7 +1107,8 @@ attribute_deprecated int av_open_input_s
83 *
84 * @deprecated use avformat_open_input instead.
85 */
86 -attribute_deprecated int av_open_input_file(AVFormatContext **ic_ptr, const cha r *filename,
87 +//attribute_deprecated
88 +int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
89 AVInputFormat *fmt,
90 int buf_size,
91 AVFormatParameters *ap);
92
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698