Commit 40bc99a2 authored by michael's avatar michael

Let the mpeg audio parser correct the codec_id.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16582 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4d6a5cc1
......@@ -58,13 +58,16 @@ int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate,
switch(s->layer) {
case 1:
avctx->codec_id = CODEC_ID_MP1;
*frame_size = 384;
break;
case 2:
avctx->codec_id = CODEC_ID_MP2;
*frame_size = 1152;
break;
default:
case 3:
avctx->codec_id = CODEC_ID_MP3;
if (s->lsf)
*frame_size = 576;
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