[FFmpeg-cvslog] lavfi/cropdetect: Fix cropdetect for > 8 bit input.

Carl Eugen Hoyos git at videolan.org
Mon May 4 18:14:13 CEST 2015


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Mon May  4 17:50:16 2015 +0200| [0bca6182b26a2094c5229fef4d8fe8ecb9a75e58] | committer: Carl Eugen Hoyos

lavfi/cropdetect: Fix cropdetect for > 8 bit input.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0bca6182b26a2094c5229fef4d8fe8ecb9a75e58
---

 libavfilter/version.h       |    2 +-
 libavfilter/vf_cropdetect.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavfilter/version.h b/libavfilter/version.h
index 090215f..bf7275f 100644
--- a/libavfilter/version.h
+++ b/libavfilter/version.h
@@ -31,7 +31,7 @@
 
 #define LIBAVFILTER_VERSION_MAJOR  5
 #define LIBAVFILTER_VERSION_MINOR  16
-#define LIBAVFILTER_VERSION_MICRO 100
+#define LIBAVFILTER_VERSION_MICRO 101
 
 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
                                                LIBAVFILTER_VERSION_MINOR, \
diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c
index 485ae69..7fa9651 100644
--- a/libavfilter/vf_cropdetect.c
+++ b/libavfilter/vf_cropdetect.c
@@ -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:



More information about the ffmpeg-cvslog mailing list