From 5669ae84016f766a7632de29f014294f140513cb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 11 Feb 2014 23:58:39 +0100 Subject: [PATCH] avcodec/mpegaudio_parser: treat codec_id like the other parameters Signed-off-by: Michael Niedermayer --- libavcodec/mpegaudio_parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c index 408193671f..7a6411ca63 100644 --- a/libavcodec/mpegaudio_parser.c +++ b/libavcodec/mpegaudio_parser.c @@ -64,10 +64,11 @@ static int mpegaudio_parse(AVCodecParserContext *s1, }else{ while(i 4) s->header_count = -2; @@ -82,6 +83,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1, avctx->sample_rate= sr; avctx->channels = channels; s1->duration = frame_size; + avctx->codec_id = codec_id; if (s->no_bitrate || !avctx->bit_rate) { s->no_bitrate = 1; avctx->bit_rate += (bit_rate - avctx->bit_rate) / s->header_count;