diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-02-27 18:52:13 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-03-04 21:02:45 +0100 |
commit | 02beb9826b29166b5d7c9b306ac1648abb449be0 (patch) | |
tree | c94871bf0201b0ca0dd73a1a1f07961e38edeee1 /libavcodec/avcodec.h | |
parent | 87392b1fd5c59004b8e559463b47836e418d1d27 (diff) | |
download | ffmpeg-02beb9826b29166b5d7c9b306ac1648abb449be0.tar.gz |
lavc: deprecate AVCodecContext.sub_id.
In most places where it's used, it's as a pointless write-only field.
Only rv10 decoder actually reads from it, but it stores some internal
version info in it. There is no reason for it to be in a public field.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 3598aaaa85..491fb16a70 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1228,15 +1228,12 @@ typedef struct AVCodecContext { */ unsigned int stream_codec_tag; +#if FF_API_SUB_ID /** - * Some codecs need additional format info. It is stored here. - * If any muxer uses this then ALL demuxers/parsers AND encoders for the - * specific codec MUST set it correctly otherwise stream copy breaks. - * In general use of this field by muxers is not recommended. - * - encoding: Set by libavcodec. - * - decoding: Set by libavcodec. (FIXME: Is this OK?) + * @deprecated this field is unused */ - int sub_id; + attribute_deprecated int sub_id; +#endif void *priv_data; |