Commit b55226dc authored by kostya's avatar kostya

Off-by-one error fix

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7694 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4500166e
......@@ -1283,8 +1283,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);
h = get_bits(gb, 14);
w = get_bits(gb, 14) + 1;
h = get_bits(gb, 14) + 1;
av_log(v->s.avctx, AV_LOG_INFO, "Display dimensions: %ix%i\n", w, h);
//TODO: store aspect ratio in AVCodecContext
if(get_bits1(gb))
......
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