From: Philipp Zabel
Date: Mon, 30 Sep 2013 13:34:53 +0000 (-0300)
Subject: [media] coda: v4l2-compliance fix: zero pixel format priv field
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=867f1edbcca970f6ec6d797764dbd165f4e528ab;p=openwrt%2Fstaging%2Fblogic.git
[media] coda: v4l2-compliance fix: zero pixel format priv field
If unused, the pixel format priv field has to be cleared by the driver
in try_fmt.
Signed-off-by: Philipp Zabel
Signed-off-by: Kamil Debski
Signed-off-by: Mauro Carvalho Chehab
---
diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c
index b541c069ffe9..ed4998c224f8 100644
--- a/drivers/media/platform/coda.c
+++ b/drivers/media/platform/coda.c
@@ -613,6 +613,8 @@ static int coda_try_fmt(struct coda_ctx *ctx, struct coda_codec *codec,
BUG();
}
+ f->fmt.pix.priv = 0;
+
return 0;
}