1
0
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:
Peter Cordes 2015-03-02 22:57:08 -04:00 committed by Michael Niedermayer
parent b60c445965
commit fb1be6303d

View File

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