avfilter/vf_mcdeint: remove usage of deprecated AVCodecContext.me_method
authorJames Almer <jamrial@gmail.com>
Mon, 28 Aug 2017 16:40:06 +0000 (13:40 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 31 Aug 2017 00:49:14 +0000 (21:49 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavfilter/vf_mcdeint.c

index d53322b..9cdec63 100644 (file)
@@ -134,7 +134,7 @@ static int config_props(AVFilterLink *inlink)
     case MODE_EXTRA_SLOW:
         enc_ctx->refs = 3;
     case MODE_SLOW:
-        enc_ctx->me_method = ME_ITER;
+        av_dict_set(&opts, "motion_est", "iter", 0);
     case MODE_MEDIUM:
         enc_ctx->flags |= AV_CODEC_FLAG_4MV;
         enc_ctx->dia_size = 2;