[FFmpeg-devel] [PATCH] avfilter/mcdeint: remove usage of deprecated AVCodecContext.me_method

James Almer jamrial at gmail.com
Mon Aug 28 20:18:53 EEST 2017


Signed-off-by: James Almer <jamrial at gmail.com>
---
Depends on patch "avcodec/snowenc: fix setting motion_est option"

 libavfilter/vf_mcdeint.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_mcdeint.c b/libavfilter/vf_mcdeint.c
index 26387b84e7..f07e1a0d60 100644
--- a/libavfilter/vf_mcdeint.c
+++ b/libavfilter/vf_mcdeint.c
@@ -52,6 +52,7 @@
 #include "libavutil/opt.h"
 #include "libavutil/pixdesc.h"
 #include "libavcodec/avcodec.h"
+#include "libavcodec/snow.h"
 #include "avfilter.h"
 #include "formats.h"
 #include "internal.h"
@@ -134,7 +135,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", AV_STRINGIFY(FF_ME_ITER), 0);
     case MODE_MEDIUM:
         enc_ctx->flags |= AV_CODEC_FLAG_4MV;
         enc_ctx->dia_size = 2;
-- 
2.13.3



More information about the ffmpeg-devel mailing list