Skip to contentSkip to conversation

v4l2-compliance/v4l2-test-formats: fix typo

PATCH New Alexandre Courbot 1 participant 1 message Mar 1, 2018 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v4l2-compliance/v4l2-test-formats: fix typo

When using planar formats, we want to check pix_mp, not pix.

---
 utils/v4l2-compliance/v4l2-test-formats.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/v4l2-compliance/v4l2-test-formats.cpp +1 -1
index a336afdd..e9170688 100644
@@ -452,7 +452,7 @@ static int testFormatsType(struct node *node, int ret,  unsigned type, struct v4
 		if (!node->is_m2m)
 			fail_on_test(testColorspace(pix_mp.pixelformat, pix_mp.colorspace, 
                                             pix_mp.ycbcr_enc, pix_mp.quantization));
-		fail_on_test(pix.field == V4L2_FIELD_ANY);
+		fail_on_test(pix_mp.field == V4L2_FIELD_ANY);
 		ret = check_0(pix_mp.reserved, sizeof(pix_mp.reserved));
 		if (ret)
 			return fail("pix_mp.reserved not zeroed\n");
Signature · 1 line
2.16.2.395.g2e18187dfd-goog