Hi!

Attached patch fixes cropdetect here for yuv422p10le (no
other formats tested), I don't know if the change to
diff makes sense or not.

Please comment, Carl Eugen
diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c
index 485ae69..6d0081e 100644
--- a/libavfilter/vf_cropdetect.c
+++ b/libavfilter/vf_cropdetect.c
@@ -92,13 +92,14 @@ 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;
         }
+        div *= 2;
         break;
     case 3:
     case 4:
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to