mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavfi/cropdetect: Fix cropdetect for > 8 bit input.
This commit is contained in:
parent
8ad04d24c8
commit
0bca6182b2
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#define LIBAVFILTER_VERSION_MAJOR 5
|
#define LIBAVFILTER_VERSION_MAJOR 5
|
||||||
#define LIBAVFILTER_VERSION_MINOR 16
|
#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, \
|
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
|
||||||
LIBAVFILTER_VERSION_MINOR, \
|
LIBAVFILTER_VERSION_MINOR, \
|
||||||
|
@ -92,12 +92,12 @@ static int checkline(void *ctx, const unsigned char *src, int stride, int len, i
|
|||||||
while (len >= 8) {
|
while (len >= 8) {
|
||||||
total += src16[ 0] + src16[ stride] + src16[2*stride] + src16[3*stride]
|
total += src16[ 0] + src16[ stride] + src16[2*stride] + src16[3*stride]
|
||||||
+ src16[4*stride] + src16[5*stride] + src16[6*stride] + src16[7*stride];
|
+ src16[4*stride] + src16[5*stride] + src16[6*stride] + src16[7*stride];
|
||||||
src += 8*stride;
|
src16 += 8*stride;
|
||||||
len -= 8;
|
len -= 8;
|
||||||
}
|
}
|
||||||
while (--len >= 0) {
|
while (--len >= 0) {
|
||||||
total += src16[0];
|
total += src16[0];
|
||||||
src += stride;
|
src16 += stride;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user