summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodecheader.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-02-27 18:52:13 +0100
committerAnton Khirnov <anton@khirnov.net>2012-03-04 21:02:45 +0100
commit02beb9826b29166b5d7c9b306ac1648abb449be0 (patch)
treec94871bf0201b0ca0dd73a1a1f07961e38edeee1 /libavcodec/mpegaudiodecheader.c
parent87392b1fd5c59004b8e559463b47836e418d1d27 (diff)
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/mpegaudiodecheader.c')
-rw-r--r--libavcodec/mpegaudiodecheader.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodecheader.c b/libavcodec/mpegaudiodecheader.c
index dbd67ff0e3..428137ddaf 100644
--- a/libavcodec/mpegaudiodecheader.c
+++ b/libavcodec/mpegaudiodecheader.c
@@ -142,6 +142,5 @@ int avpriv_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_r
*sample_rate = s->sample_rate;
*channels = s->nb_channels;
*bit_rate = s->bit_rate;
- avctx->sub_id = s->layer;
return s->frame_size;
}