diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c
index 6f71a6327e52464c869fd084cfad7abc78ca8db8..a6fe783511e0bce0dd148a4f60e13bc5e23bda07 100644
--- a/libpostproc/postprocess_template.c
+++ b/libpostproc/postprocess_template.c
@@ -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;