Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-04-10 04:09:07 +0400
committerMichael Niedermayer <michaelni@gmx.at>2009-04-10 04:09:07 +0400
commitc81185a18333b28439476fdc00979225158c8755 (patch)
treee8154e4a484ae4d3a6f0dac6d090ba955b6fab59 /libavcodec
parentcfe675269bf44c49590e9076b5d2cd2503804f98 (diff)
Make sure mpeg2 has its height rounded up to 32 as that is needed
for interlaced stuff. This might have been exploitable when emu edge was not set though note this bug has been introduced just a few days ago. Originally committed as revision 18405 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index f39b49d511..7a24a4d246 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -144,6 +144,8 @@ void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height){
case PIX_FMT_YUVA420P:
w_align= 16; //FIXME check for non mpeg style codecs and use less alignment
h_align= 16;
+ if(s->codec_id == CODEC_ID_MPEG2VIDEO)
+ h_align= 32; // interlaced is rounded up to 2 MBs
break;
case PIX_FMT_YUV411P:
case PIX_FMT_UYYVYY411: