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;