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/vf_identity.c | |
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/vf_identity.c')
-rw-r--r-- | libavfilter/vf_identity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_identity.c b/libavfilter/vf_identity.c index fc44bfaea0..6a94a92355 100644 --- a/libavfilter/vf_identity.c +++ b/libavfilter/vf_identity.c @@ -304,7 +304,7 @@ static int config_input_ref(AVFilterLink *inlink) s->filter_slice = !s->is_msad ? compute_images_identity : compute_images_msad; s->filter_line = desc->comp[0].depth > 8 ? identity_line_16bit : identity_line_8bit; - s->sad = ff_scene_sad_get_fn(desc->comp[0].depth <= 8 ? 8 : 16); + s->sad = ff_scene_sad_get_fn(desc->comp[0].depth); if (!s->sad) return AVERROR(EINVAL); |