changeset 6866:e627df327e77 libavcodec

Do not reject odd width/height. Fixes issue371.
author michael
date Sun, 25 May 2008 13:31:07 +0000
parents 2ed146e1ff55
children 8f656b589911
files mpeg12.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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) {