changeset 4474:82277cf5f051 libavcodec

Set codec dimensions in extradata parsing
author kostya
date Mon, 05 Feb 2007 06:58:02 +0000
parents 4638532defe5
children 65e3ae093faf
files vc1.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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){