# HG changeset patch # User kostya # Date 1169660966 0 # Node ID 003b8c6dd7565753832f8490794163bd1af126c8 # Parent b78c1074a9cc415d92f3fa372414098ba98a6bbf Off-by-one error fix diff -r b78c1074a9cc -r 003b8c6dd756 vc1.c --- 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))