lavf/vaapi_deinterlace: return error if mode unsupported
authorZhong Li <zhong.li@intel.com>
Mon, 14 Jan 2019 07:29:54 +0000 (15:29 +0800)
committerZhong Li <zhong.li@intel.com>
Fri, 25 Jan 2019 08:55:01 +0000 (16:55 +0800)
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: Fuwei Tang <fuweix.tang@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
libavfilter/vf_deinterlace_vaapi.c

index 97aee65..f67a1c8 100644 (file)
@@ -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);
         }
     }