]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_cropdetect.c
avcodec: loongson3 optimized h264dsp weighted mc with mmi
[ffmpeg] / libavfilter / vf_cropdetect.c
index 485ae69fb300c39a24d25667231124e5ea63e6e5..7fa965160fbcf4fdaf193317a0fb93c5deb334c5 100644 (file)
@@ -92,12 +92,12 @@ static int checkline(void *ctx, const unsigned char *src, int stride, int len, i
         while (len >= 8) {
             total += src16[       0] + src16[  stride] + src16[2*stride] + src16[3*stride]
                   +  src16[4*stride] + src16[5*stride] + src16[6*stride] + src16[7*stride];
-            src += 8*stride;
+            src16 += 8*stride;
             len -= 8;
         }
         while (--len >= 0) {
             total += src16[0];
-            src += stride;
+            src16 += stride;
         }
         break;
     case 3: