Commit a14d138c authored by Michael Niedermayer's avatar Michael Niedermayer

Let the mpeg audio parser correct the codec_id.

Originally committed as revision 16582 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent cb595b7f
...@@ -58,13 +58,16 @@ int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate, ...@@ -58,13 +58,16 @@ int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate,
switch(s->layer) { switch(s->layer) {
case 1: case 1:
avctx->codec_id = CODEC_ID_MP1;
*frame_size = 384; *frame_size = 384;
break; break;
case 2: case 2:
avctx->codec_id = CODEC_ID_MP2;
*frame_size = 1152; *frame_size = 1152;
break; break;
default: default:
case 3: case 3:
avctx->codec_id = CODEC_ID_MP3;
if (s->lsf) if (s->lsf)
*frame_size = 576; *frame_size = 576;
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment