[FFmpeg-devel] [PATCH] lavf/vaapi_deinterlace: return error if mode unsupported
Zhong Li
zhong.li at intel.com
Mon Jan 14 09:29:54 EET 2019
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);
}
}
--
2.7.4
More information about the ffmpeg-devel
mailing list