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/f_select.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/f_select.c')
-rw-r--r-- | libavfilter/f_select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c index a5609ec178..46208a7b76 100644 --- a/libavfilter/f_select.c +++ b/libavfilter/f_select.c @@ -272,7 +272,7 @@ static int config_input(AVFilterLink *inlink) inlink->type == AVMEDIA_TYPE_AUDIO ? inlink->sample_rate : NAN; if (CONFIG_SELECT_FILTER && select->do_scene_detect) { - select->sad = ff_scene_sad_get_fn(select->bitdepth == 8 ? 8 : 16); + select->sad = ff_scene_sad_get_fn(select->bitdepth); if (!select->sad) return AVERROR(EINVAL); } |