summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhong Li <zhong.li@intel.com>2019-01-14 15:29:54 +0800
committerZhong Li <zhong.li@intel.com>2019-01-25 16:55:01 +0800
commit260f1960e7e2e2bff56957a216130623f8109d8f (patch)
tree69481f55eb5951416826e0c484e7de16547f7683
parent74cf2dc3ac405c5e55b7ecd4d17b40e26d59eb84 (diff)
downloadffmpeg-260f1960e7e2e2bff56957a216130623f8109d8f.tar.gz
lavf/vaapi_deinterlace: return error if mode unsupported
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>
-rw-r--r--libavfilter/vf_deinterlace_vaapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_deinterlace_vaapi.c b/libavfilter/vf_deinterlace_vaapi.c
index 97aee6588f..f67a1c8e79 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);
}
}