summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yavta.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/yavta.c b/yavta.c
index 17a4af2..3db1e5b 100644
--- a/yavta.c
+++ b/yavta.c
@@ -1053,6 +1053,10 @@ int main(int argc, char *argv[])
pixelformat = V4L2_PIX_FMT_SGRBG10DPCM8;
else if (strcasecmp(optarg, "SGRBG10") == 0)
pixelformat = V4L2_PIX_FMT_SGRBG10;
+#ifdef V4L2_PIX_FMT_SGRBG12
+ else if (strcasecmp(optarg, "SGRBG12") == 0)
+ pixelformat = V4L2_PIX_FMT_SGRBG12;
+#endif
else if (strcasecmp(optarg, "DV") == 0)
pixelformat = V4L2_PIX_FMT_DV;
else {