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.
This commit is contained in:
Niklas Haas
2025-07-12 11:15:56 +02:00
parent e6af82c498
commit dc61b74c1d
8 changed files with 9 additions and 10 deletions

View File

@@ -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);
}