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/mpegaudiodec.c | |
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/mpegaudiodec.c')
-rw-r--r-- | libavcodec/mpegaudiodec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index d6a09c86a8..dd43beb4fe 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -1660,7 +1660,6 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *got_frame_ptr, avctx->channel_layout = s->nb_channels == 1 ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO; if (!avctx->bit_rate) avctx->bit_rate = s->bit_rate; - avctx->sub_id = s->layer; if (s->frame_size <= 0 || s->frame_size > buf_size) { av_log(avctx, AV_LOG_ERROR, "incomplete frame\n"); @@ -1733,7 +1732,6 @@ static int decode_frame_adu(AVCodecContext *avctx, void *data, avctx->channels = s->nb_channels; if (!avctx->bit_rate) avctx->bit_rate = s->bit_rate; - avctx->sub_id = s->layer; s->frame_size = len; |