From 4efd6f58b64c4b4187ac7ee65162b94106272295 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 3 Aug 2007 23:23:42 +0000 Subject: [PATCH] fix block_align for mp3 stream copy Originally committed as revision 9880 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 8ec10a2f4..859f3ff39 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1527,6 +1527,8 @@ static int av_encode(AVFormatContext **output_files, codec->channels = icodec->channels; codec->frame_size = icodec->frame_size; codec->block_align= icodec->block_align; + if(codec->block_align == 1 && codec->codec_id == CODEC_ID_MP3) + codec->block_align= 0; break; case CODEC_TYPE_VIDEO: if(using_vhook) { -- 2.34.1