Browse code

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>

Peter Cordes authored on 2015/03/03 11:57:08
Showing 1 changed files
... ...
@@ -131,7 +131,7 @@ static av_cold int init(AVFilterContext *ctx)
131 131
 {
132 132
     DecimateContext *decimate = ctx->priv;
133 133
 
134
-    decimate->sad = av_pixelutils_get_sad_fn(3, 3, 0, decimate); // 8x8, not aligned on blocksize
134
+    decimate->sad = av_pixelutils_get_sad_fn(3, 3, 0, ctx); // 8x8, not aligned on blocksize
135 135
     if (!decimate->sad)
136 136
         return AVERROR(EINVAL);
137 137