# HG changeset patch # User michael # Date 1211722267 0 # Node ID e627df327e77a83cbb3b3dc95535770cf9b6c065 # Parent 2ed146e1ff55dffbdde93db77bc73a447c5f9f0a Do not reject odd width/height. Fixes issue371. diff -r 2ed146e1ff55 -r e627df327e77 mpeg12.c --- 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) {