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

Zhong Li git at videolan.org
Fri Jan 25 11:05:38 EET 2019


ffmpeg | branch: master | Zhong Li <zhong.li at intel.com> | Mon Jan 14 15:29:54 2019 +0800| [260f1960e7e2e2bff56957a216130623f8109d8f] | committer: Zhong Li

lavf/vaapi_deinterlace: return error if mode unsupported

Reviewed-by: Mark Thompson <sw at jkqxz.net>
Signed-off-by: Fuwei Tang <fuweix.tang at intel.com>
Signed-off-by: Zhong Li <zhong.li at intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=260f1960e7e2e2bff56957a216130623f8109d8f
---

 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 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);
         }
     }
 



More information about the ffmpeg-cvslog mailing list