mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-23 07:20:05 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user