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

Michael Niedermayer michael at niedermayer.cc
Thu Aug 31 03:39:01 EEST 2017


On Mon, Aug 28, 2017 at 02:18:53PM -0300, James Almer wrote:
> 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);

"iter" doesnt work instead of AV_STRINGIFY(FF_ME_ITER) ?

either way LGTM if tested

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you drop bombs on a foreign country and kill a hundred thousand
innocent people, expect your government to call the consequence
"unprovoked inhuman terrorist attacks" and use it to justify dropping
more bombs and killing more people. The technology changed, the idea is old.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170831/215ba5df/attachment.sig>


More information about the ffmpeg-devel mailing list