mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_mpdecimate: pass the same AVClass context as use elsewhere to av_pixelutils_get_sad_fn()
Signed-off-by: Peter Cordes <peter@cordes.ca>
This commit is contained in:
parent
b60c445965
commit
fb1be6303d
@ -131,7 +131,7 @@ static av_cold int init(AVFilterContext *ctx)
|
||||
{
|
||||
DecimateContext *decimate = ctx->priv;
|
||||
|
||||
decimate->sad = av_pixelutils_get_sad_fn(3, 3, 0, decimate); // 8x8, not aligned on blocksize
|
||||
decimate->sad = av_pixelutils_get_sad_fn(3, 3, 0, ctx); // 8x8, not aligned on blocksize
|
||||
if (!decimate->sad)
|
||||
return AVERROR(EINVAL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user