Commit fb4fd5de authored by kostya's avatar kostya

Set codec dimensions if provided by extradata

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7810 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 860c250b
...@@ -1305,8 +1305,8 @@ static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb) ...@@ -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 if(get_bits1(gb)) { //Display Info - decoding is not affected by it
int w, h, ar = 0; int w, h, ar = 0;
av_log(v->s.avctx, AV_LOG_INFO, "Display extended info:\n"); av_log(v->s.avctx, AV_LOG_INFO, "Display extended info:\n");
w = get_bits(gb, 14) + 1; v->s.avctx->width = v->s.width = w = get_bits(gb, 14) + 1;
h = 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); av_log(v->s.avctx, AV_LOG_INFO, "Display dimensions: %ix%i\n", w, h);
if(get_bits1(gb)) if(get_bits1(gb))
ar = get_bits(gb, 4); ar = get_bits(gb, 4);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment