Mercurial > libavcodec.hg
diff mpeg12.c @ 6866:e627df327e77 libavcodec
Do not reject odd width/height.
Fixes issue371.
author | michael |
---|---|
date | Sun, 25 May 2008 13:31:07 +0000 |
parents | e1302edb0f69 |
children | 966b86c01ade |
line wrap: on
line diff
--- a/mpeg12.c Sun May 25 13:26:04 2008 +0000 +++ b/mpeg12.c Sun May 25 13:31:07 2008 +0000 @@ -1966,8 +1966,7 @@ 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) {