projects
/
platform
/
upstream
/
v4l-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80a232d
)
libv4lconvert: Gracefully handle unknown SE401 destination formats
author
Gregor Jasny
<gjasny@googlemail.com>
Wed, 23 Apr 2014 08:12:33 +0000
(10:12 +0200)
committer
Gregor Jasny
<gjasny@googlemail.com>
Wed, 23 Apr 2014 08:14:44 +0000
(10:14 +0200)
Detected by Coverity.
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
CC: Hans de Goede <hdegoede@redhat.com>
lib/libv4lconvert/libv4lconvert.c
patch
|
blob
|
history
diff --git
a/lib/libv4lconvert/libv4lconvert.c
b/lib/libv4lconvert/libv4lconvert.c
index
4e1be69
..
c49d30d
100644
(file)
--- a/
lib/libv4lconvert/libv4lconvert.c
+++ b/
lib/libv4lconvert/libv4lconvert.c
@@
-974,6
+974,10
@@
static int v4lconvert_convert_pixfmt(struct v4lconvert_data *data,
fmt->fmt.pix.pixelformat = V4L2_PIX_FMT_RGB24;
v4lconvert_fixup_fmt(fmt);
break;
+ default:
+ V4LCONVERT_ERR("Unknown destination format in conversion\n");
+ errno = EINVAL;
+ return -1;
}
result = v4lconvert_se401_to_rgb24(data, src, src_size, d,