Mercurial > libavcodec.hg
diff vc1.c @ 4401:003b8c6dd756 libavcodec
Off-by-one error fix
author | kostya |
---|---|
date | Wed, 24 Jan 2007 17:49:26 +0000 |
parents | b78c1074a9cc |
children | 43f4d0d7672c |
line wrap: on
line diff
--- a/vc1.c Wed Jan 24 17:47:42 2007 +0000 +++ b/vc1.c Wed Jan 24 17:49:26 2007 +0000 @@ -1283,8 +1283,8 @@ 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))