diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-14 17:15:11 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-14 17:15:11 +0400 |
commit | 6d49e819beebe8fb7ed5b0c01ed611b13a8f69ce (patch) | |
tree | b72a60b270120801439c2dede5c3ddcf5d22c408 /ffmpeg.c | |
parent | 8443082db68daa044b85c2b91368b460990c7677 (diff) |
ffmpeg: revert 492cc1
This restores correct block_align values in case of stream copy.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3076,6 +3076,10 @@ 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) + codec->block_align= 0; + if(codec->codec_id == CODEC_ID_AC3) + codec->block_align= 0; break; case AVMEDIA_TYPE_VIDEO: codec->pix_fmt = icodec->pix_fmt; |