Browse Source

Set codec dimensions if provided by extradata

Originally committed as revision 7810 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Kostya Shishkov 19 years ago
parent
commit
e7cf38e556
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/vc1.c

+ 2
- 2
libavcodec/vc1.c View File

@@ -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);


Loading…
Cancel
Save