Commit 4efd6f58 authored by Michael Niedermayer's avatar Michael Niedermayer

fix block_align for mp3 stream copy

Originally committed as revision 9880 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 80c24d99
...@@ -1527,6 +1527,8 @@ static int av_encode(AVFormatContext **output_files, ...@@ -1527,6 +1527,8 @@ static int av_encode(AVFormatContext **output_files,
codec->channels = icodec->channels; codec->channels = icodec->channels;
codec->frame_size = icodec->frame_size; codec->frame_size = icodec->frame_size;
codec->block_align= icodec->block_align; codec->block_align= icodec->block_align;
if(codec->block_align == 1 && codec->codec_id == CODEC_ID_MP3)
codec->block_align= 0;
break; break;
case CODEC_TYPE_VIDEO: case CODEC_TYPE_VIDEO:
if(using_vhook) { if(using_vhook) {
......
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