Commit fb1be630 authored by Peter Cordes's avatar Peter Cordes Committed by Michael Niedermayer

avfilter/vf_mpdecimate: pass the same AVClass context as use elsewhere to...

avfilter/vf_mpdecimate: pass the same AVClass context as use elsewhere to av_pixelutils_get_sad_fn()
Signed-off-by: 's avatarPeter Cordes <peter@cordes.ca>
parent b60c4459
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment