aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2007-02-05 06:58:02 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2007-02-05 06:58:02 +0000
commit4305a4ef0d19148564ed73959cb6274abfd43e4c (patch)
tree9f9e434c2b884d3e62cfa7ee8ec5db64e9e99622
parent5dc4b2108f56dc7598432a0a005947e572c91f66 (diff)
downloadffmpeg-4305a4ef0d19148564ed73959cb6274abfd43e4c.tar.gz
Set codec dimensions in extradata parsing
Originally committed as revision 7820 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/vc1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index e0bd62e63f..6711270452 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -1278,6 +1278,8 @@ static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb)
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){