diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-05-25 13:31:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-05-25 13:31:07 +0000 |
commit | 16e30b7a04025c83049dad134a71097bea14dc2f (patch) | |
tree | ec94c256f0e674168f1ac092c410fdf01b11d931 /libavcodec/mpeg12.c | |
parent | d7dc90e42dc80f6cafba5e46b7a9d9077cf84fc2 (diff) | |
download | ffmpeg-16e30b7a04025c83049dad134a71097bea14dc2f.tar.gz |
Do not reject odd width/height.
Fixes issue371.
Originally committed as revision 13377 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 86e1334a24..8133b1d267 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -1966,8 +1966,7 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx, width = get_bits(&s->gb, 12); height = get_bits(&s->gb, 12); - if (width <= 0 || height <= 0 || - (width % 2) != 0 || (height % 2) != 0) + if (width <= 0 || height <= 0) return -1; s->aspect_ratio_info= get_bits(&s->gb, 4); if (s->aspect_ratio_info == 0) { |