vaapipostproc: fix csc fail when only change width or height.
authorWangfei <fei.w.wang@intel.com>
Tue, 18 Dec 2018 02:44:21 +0000 (10:44 +0800)
committerWangfei <fei.w.wang@intel.com>
Tue, 18 Dec 2018 02:47:15 +0000 (10:47 +0800)
gst/vaapi/gstvaapipostproc.c

index 4577454..a2e75e8 100644 (file)
@@ -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;