ffmpeg: fix streamcopy of lsf mp3.
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 11 Feb 2013 23:32:16 +0000 (00:32 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 11 Feb 2013 23:38:22 +0000 (00:38 +0100)
Fixes streamcopy of bear_mpeg4_mp3.avi
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index bda7610..6817f9c 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2206,7 +2206,7 @@ static int transcode_init(void)
                 codec->frame_size         = icodec->frame_size;
                 codec->audio_service_type = icodec->audio_service_type;
                 codec->block_align        = icodec->block_align;
-                if((codec->block_align == 1 || codec->block_align == 1152) && codec->codec_id == AV_CODEC_ID_MP3)
+                if((codec->block_align == 1 || codec->block_align == 1152 || codec->block_align == 576) && codec->codec_id == AV_CODEC_ID_MP3)
                     codec->block_align= 0;
                 if(codec->codec_id == AV_CODEC_ID_AC3)
                     codec->block_align= 0;