Browse Source

Set codec dimensions in extradata parsing

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

+ 2
- 0
libavcodec/vc1.c View File

@@ -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_width = (get_bits(gb, 12) + 1) << 1;
v->s.avctx->coded_height = (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->broadcast = get_bits1(gb);
v->interlace = get_bits1(gb); v->interlace = get_bits1(gb);
if(v->interlace){ if(v->interlace){


Loading…
Cancel
Save