diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-05-04 17:50:16 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-05-04 17:50:16 +0200 |
commit | 0bca6182b26a2094c5229fef4d8fe8ecb9a75e58 (patch) | |
tree | ff5df60db6bfaa27723d59f286f75a2cb222e397 /libavfilter/vf_cropdetect.c | |
parent | 8ad04d24c82e4b59a89108c3d37095e8362788bd (diff) | |
download | ffmpeg-0bca6182b26a2094c5229fef4d8fe8ecb9a75e58.tar.gz |
lavfi/cropdetect: Fix cropdetect for > 8 bit input.
Diffstat (limited to 'libavfilter/vf_cropdetect.c')
-rw-r--r-- | libavfilter/vf_cropdetect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c index 485ae69fb3..7fa965160f 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: |