diff h263.c @ 274:d0c186bcf075 libavcodec

use the width & height from the mpeg4 header ... in the case that its complete
author michaelni
date Tue, 19 Mar 2002 03:51:36 +0000
parents 897dc7c6aa94
children 5cb2978e701f
line wrap: on
line diff
--- a/h263.c	Mon Mar 18 21:06:07 2002 +0000
+++ b/h263.c	Tue Mar 19 03:51:36 2002 +0000
@@ -2149,6 +2149,10 @@
                 skip_bits1(&s->gb);   /* marker */
                 height = get_bits(&s->gb, 13);
                 skip_bits1(&s->gb);   /* marker */
+                if(width && height){ /* they should be non zero but who knows ... */
+                    s->width = width;
+                    s->height = height;
+                }
             }
             
             if(get_bits1(&s->gb)) printf("interlaced not supported\n");   /* interlaced */