aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-08-03 23:23:42 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-08-03 23:23:42 +0000
commit4efd6f58b64c4b4187ac7ee65162b94106272295 (patch)
tree1f5a9814606b86dcdd23a4b459e22ea361762996
parent80c24d9908097e92a8c97a81c6d954058504911c (diff)
downloadffmpeg-4efd6f58b64c4b4187ac7ee65162b94106272295.tar.gz
fix block_align for mp3 stream copy
Originally committed as revision 9880 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 8ec10a2f43..859f3ff398 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) {