libpostproc: Fix off by 1 error in the C dering code
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 28 Dec 2012 00:48:40 +0000 (01:48 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 28 Dec 2012 00:48:40 +0000 (01:48 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libpostproc/postprocess_template.c

index 6f71a63..a6fe783 100644 (file)
@@ -1324,6 +1324,7 @@ DERING_CORE((%0, %1, 8)    ,(%%REGd, %1, 4),%%mm2,%%mm4,%%mm0,%%mm3,%%mm5,%%mm1,
     int s[10];
     const int QP2= c->QP/2 + 1;
 
+    src --;
     for(y=1; y<9; y++){
         int x;
         p= src + stride*y;