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_minterpolate.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_minterpolate.c')
-rw-r--r-- | libavfilter/vf_minterpolate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_minterpolate.c b/libavfilter/vf_minterpolate.c index 93d331f2ff..d034783bc5 100644 --- a/libavfilter/vf_minterpolate.c +++ b/libavfilter/vf_minterpolate.c @@ -387,7 +387,7 @@ static int config_input(AVFilterLink *inlink) } if (mi_ctx->scd_method == SCD_METHOD_FDIFF) { - mi_ctx->sad = ff_scene_sad_get_fn(mi_ctx->bitdepth == 8 ? 8 : 16); + mi_ctx->sad = ff_scene_sad_get_fn(mi_ctx->bitdepth); if (!mi_ctx->sad) return AVERROR(EINVAL); } |