ffmpeg: fix streamcopy of some mp3 in avi
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Jul 2012 14:24:54 +0000 (16:24 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Jul 2012 14:56:03 +0000 (16:56 +0200)
Fixes Ticket1432

Thanks-to: Mike Scheutzow <mike.scheutzow@alcatel-lucent.com> for some of the bug analysis
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index f949d48..61840cc 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3006,7 +3006,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->codec_id == CODEC_ID_MP3)
+                if((codec->block_align == 1 || codec->block_align == 1152) && codec->codec_id == CODEC_ID_MP3)
                     codec->block_align= 0;
                 if(codec->codec_id == CODEC_ID_AC3)
                     codec->block_align= 0;