[FFmpeg-devel] [PATCH] lavf/vaapi_deinterlace: return error if mode unsupported

Mark Thompson sw at jkqxz.net
Thu Jan 24 01:51:40 EET 2019


On 14/01/2019 07:29, Zhong Li wrote:
> Signed-off-by: Fuwei Tang <fuweix.tang at intel.com>
> Signed-off-by: Zhong Li <zhong.li at intel.com>
> ---
>  libavfilter/vf_deinterlace_vaapi.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavfilter/vf_deinterlace_vaapi.c b/libavfilter/vf_deinterlace_vaapi.c
> index 97aee65..f67a1c8 100644
> --- a/libavfilter/vf_deinterlace_vaapi.c
> +++ b/libavfilter/vf_deinterlace_vaapi.c
> @@ -113,6 +113,7 @@ static int deint_vaapi_build_filter_params(AVFilterContext *avctx)
>              av_log(avctx, AV_LOG_ERROR, "Deinterlacing mode %d (%s) is "
>                     "not supported.\n", ctx->mode,
>                     deint_vaapi_mode_name(ctx->mode));
> +            return AVERROR(EINVAL);
>          }
>      }

Oops :/

LGTM.

Thanks,

- Mark


More information about the ffmpeg-devel mailing list