Commit 8ed6d825 authored by michael's avatar michael

Do not reject odd width/height.

Fixes issue371.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13377 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 53e5caef
......@@ -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) {
......
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