mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
video: Fix broken comparison in unit test
libs/video.c:540:50: error: comparison of constant 2 with boolean expression is always false [-Werror,-Wtautological-constant-out-of-range-compare] && !GST_VIDEO_INFO_N_PLANES (&vinfo) > 2) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
This commit is contained in:
parent
9a20920aa4
commit
f8b367212d
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,7 @@ GST_START_TEST (test_video_formats)
|
|||
fail_unless_equals_int (GST_VIDEO_INFO_COMP_STRIDE (&vinfo, 0),
|
||||
paintinfo.ystride);
|
||||
if (!gst_video_format_is_packed (fmt)
|
||||
&& !GST_VIDEO_INFO_N_PLANES (&vinfo) > 2) {
|
||||
&& GST_VIDEO_INFO_N_PLANES (&vinfo) > 2) {
|
||||
/* planar */
|
||||
fail_unless_equals_int (GST_VIDEO_INFO_COMP_STRIDE (&vinfo, 1),
|
||||
paintinfo.ustride);
|
||||
|
|
Loading…
Reference in a new issue