diff options
author | Niklas Haas <git@haasn.dev> | 2025-07-12 11:15:56 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2025-07-17 12:26:05 +0200 |
commit | dc61b74c1d30e0b51febdb6c567be1ca7c1eaca5 (patch) | |
tree | 0138aa54110f993ab44ff816c37505991e7bad56 /libavfilter/x86 | |
parent | e6af82c49895825d0cbea71e24c77be6b16571c4 (diff) | |
download | ffmpeg-dc61b74c1d30e0b51febdb6c567be1ca7c1eaca5.tar.gz |
avfilter/scene_sad: pass true depth to ff_scene_sad_get_fn()
I need to be able to distinguish between 10/12/14 and 16 bit depths, for
overflow reasons.
Diffstat (limited to 'libavfilter/x86')
-rw-r--r-- | libavfilter/x86/scene_sad_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/x86/scene_sad_init.c b/libavfilter/x86/scene_sad_init.c index 2c3729ceee..4a4c40195f 100644 --- a/libavfilter/x86/scene_sad_init.c +++ b/libavfilter/x86/scene_sad_init.c @@ -47,7 +47,7 @@ ff_scene_sad_fn ff_scene_sad_get_fn_x86(int depth) { #if HAVE_X86ASM int cpu_flags = av_get_cpu_flags(); - if (depth == 8) { + if (depth <= 8) { #if HAVE_AVX2_EXTERNAL if (EXTERNAL_AVX2_FAST(cpu_flags)) return scene_sad_avx2; |