summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2007-02-03 06:41:14 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2007-02-03 06:41:14 +0000
commite7cf38e556a8e1fd3a7e34b0b7b9dc7eee441cec (patch)
treeb17f4bcfb782b63f8b7f8b41dbf298ef17c137f2
parent35bffd7f3d82b6c1d28afc789189a6cff6f6e067 (diff)
Set codec dimensions if provided by extradata
Originally committed as revision 7810 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/vc1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 78bcfdd532..bd24de45e8 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -1305,8 +1305,8 @@ static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb)
if(get_bits1(gb)) { //Display Info - decoding is not affected by it
int w, h, ar = 0;
av_log(v->s.avctx, AV_LOG_INFO, "Display extended info:\n");
- w = get_bits(gb, 14) + 1;
- h = get_bits(gb, 14) + 1;
+ v->s.avctx->width = v->s.width = w = get_bits(gb, 14) + 1;
+ v->s.avctx->height = v->s.height = h = get_bits(gb, 14) + 1;
av_log(v->s.avctx, AV_LOG_INFO, "Display dimensions: %ix%i\n", w, h);
if(get_bits1(gb))
ar = get_bits(gb, 4);