summaryrefslogtreecommitdiff
path: root/libavcodec/vc1.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2007-01-24 17:49:26 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2007-01-24 17:49:26 +0000
commit14f3f3a1ad9aca7599bdaa399cdb8680c52dc696 (patch)
treeb1ae0e0d75ace60d6cc09c91ab7508e2b5e7f51e /libavcodec/vc1.c
parent5cca6bc3cd831597b728346a1ebe61dc6c2fead1 (diff)
Off-by-one error fix
Originally committed as revision 7694 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r--libavcodec/vc1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index ceb534e12f..10f5d229cb 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -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))