diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-10-29 14:30:19 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-10-29 16:58:36 +0100 |
commit | 66769a9dced089e694e608fda08675a0feeb0367 (patch) | |
tree | d43c9c8acd4ac31f5eb5c972259ccc83a5ca6531 | |
parent | 2549897336e8af49977f19aa5888d12d9269cbed (diff) | |
download | v4l-utils-66769a9dced089e694e608fda08675a0feeb0367.tar.gz |
v4l2grab: print the fourcc when libv4l won't handle it
Instead of just saying that libv4l doesn't support a format,
print its fourcc.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r-- | contrib/test/v4l2grab.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/test/v4l2grab.c b/contrib/test/v4l2grab.c index aab76927..afd3e20b 100644 --- a/contrib/test/v4l2grab.c +++ b/contrib/test/v4l2grab.c @@ -788,7 +788,8 @@ int main(int argc, char **argv) if (fmt.fmt.pix.pixelformat != V4L2_PIX_FMT_RGB24) { if (libv4l) { - printf("Libv4l didn't accept RGB24 format. Can't proceed.\n"); + char *p = (void *)&fmt.fmt.pix.pixelformat; + printf("Libv4l didn't accept RGB24 format. Can't proceed with %c%c%c%c.\n", p[0], p[1], p[2], p[3]); exit(EXIT_FAILURE); } else { printf("File output won't be in PPM format.\n"); |