From 63ea81a98370c4f96e29ac7a523457418d9034c1 Mon Sep 17 00:00:00 2001 From: Wangfei Date: Tue, 18 Dec 2018 10:44:21 +0800 Subject: [PATCH] vaapipostproc: fix csc fail when only change width or height. --- gst/vaapi/gstvaapipostproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c index 4577454..a2e75e8 100644 --- a/gst/vaapi/gstvaapipostproc.c +++ b/gst/vaapi/gstvaapipostproc.c @@ -1068,7 +1068,7 @@ gst_vaapipostproc_update_src_caps (GstVaapiPostproc * postproc, GstCaps * caps, if (GST_VIDEO_INFO_WIDTH (&postproc->srcpad_info) != GST_VIDEO_INFO_WIDTH (&postproc->sinkpad_info) - && GST_VIDEO_INFO_HEIGHT (&postproc->srcpad_info) != + || GST_VIDEO_INFO_HEIGHT (&postproc->srcpad_info) != GST_VIDEO_INFO_HEIGHT (&postproc->sinkpad_info)) postproc->flags |= GST_VAAPI_POSTPROC_FLAG_SIZE; -- 2.7.4