diff vc1.c @ 4474:82277cf5f051 libavcodec

Set codec dimensions in extradata parsing
author kostya
date Mon, 05 Feb 2007 06:58:02 +0000
parents cfbd1f3d457c
children 81a120f5f8d0
line wrap: on
line diff
--- a/vc1.c	Mon Feb 05 06:56:49 2007 +0000
+++ b/vc1.c	Mon Feb 05 06:58:02 2007 +0000
@@ -1278,6 +1278,8 @@
 
     v->s.avctx->coded_width = (get_bits(gb, 12) + 1) << 1;
     v->s.avctx->coded_height = (get_bits(gb, 12) + 1) << 1;
+    v->s.avctx->width = v->s.avctx->coded_width;
+    v->s.avctx->height = v->s.avctx->coded_height;
     v->broadcast = get_bits1(gb);
     v->interlace = get_bits1(gb);
     if(v->interlace){