[FFmpeg-cvslog] r13377 - trunk/libavcodec/mpeg12.c

michael subversion
Sun May 25 15:31:07 CEST 2008


Author: michael
Date: Sun May 25 15:31:07 2008
New Revision: 13377

Log:
Do not reject odd width/height.
Fixes issue371.


Modified:
   trunk/libavcodec/mpeg12.c

Modified: trunk/libavcodec/mpeg12.c
==============================================================================
--- trunk/libavcodec/mpeg12.c	(original)
+++ trunk/libavcodec/mpeg12.c	Sun May 25 15:31:07 2008
@@ -1966,8 +1966,7 @@ static int mpeg1_decode_sequence(AVCodec
 
     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) {




More information about the ffmpeg-cvslog mailing list