[FFmpeg-soc] [soc]: r750 - dirac/libavcodec/dirac.c

marco subversion at mplayerhq.hu
Mon Aug 13 20:40:56 CEST 2007


Author: marco
Date: Mon Aug 13 20:40:56 2007
New Revision: 750

Log:
fix off by one error

Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Mon Aug 13 20:40:56 2007
@@ -2056,13 +2056,13 @@ START_TIMER
                 /* The data that is called `ref2' in the specification
                    is stored in the even rows.  */
                 xpos *= 2;
-                val += t[i] * linein[av_clip(xpos, 0, outwidth - 1)];
+                val += t[i] * linein[av_clip(xpos, 0, outwidth - 2)];
 
                 xpos = x + i + 1;
                 /* The data that is called `ref2' in the specification
                    is stored in the even rows.  */
                 xpos *= 2;
-                val += t[i] * linein[av_clip(xpos, 0, outwidth - 1)];
+                val += t[i] * linein[av_clip(xpos, 0, outwidth - 2)];
             }
 
             val += 128;



More information about the FFmpeg-soc mailing list