[Ffmpeg-cvslog] r7694 - trunk/libavcodec/vc1.c

kostya subversion
Wed Jan 24 18:49:26 CET 2007


Author: kostya
Date: Wed Jan 24 18:49:26 2007
New Revision: 7694

Modified:
   trunk/libavcodec/vc1.c

Log:
Off-by-one error fix

Modified: trunk/libavcodec/vc1.c
==============================================================================
--- trunk/libavcodec/vc1.c	(original)
+++ trunk/libavcodec/vc1.c	Wed Jan 24 18:49:26 2007
@@ -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))




More information about the ffmpeg-cvslog mailing list