The patch number 11225 was added via Mauro Carvalho Chehab <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel
If anyone has any objections, please let us know by sending a message to:
Linux Media Mailing List <[email protected]>
------
From: Mauro Carvalho Chehab <[email protected]>
v4lgrab: fix compilation warnings
Documentation/video4linux/v4lgrab.c: In function ?main?:
Documentation/video4linux/v4lgrab.c:193: warning: ?src_depth? is used
uninitialized in this function
Documentation/video4linux/v4lgrab.c:108: warning: ?b? may be used uninitialized
in this function
Documentation/video4linux/v4lgrab.c:108: warning: ?g? may be used uninitialized
in this function
Documentation/video4linux/v4lgrab.c:108: warning: ?r? may be used uninitialized
in this function
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
---
linux/Documentation/video4linux/v4lgrab.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -r 1cf481f2d22e -r d2fa329db0ea linux/Documentation/video4linux/v4lgrab.c
--- a/linux/Documentation/video4linux/v4lgrab.c Thu Mar 26 11:14:44 2009 -0300
+++ b/linux/Documentation/video4linux/v4lgrab.c Thu Mar 26 12:07:36 2009 -0300
@@ -105,8 +105,8 @@ int main(int argc, char ** argv)
struct video_picture vpic;
unsigned char *buffer, *src;
- int bpp = 24, r, g, b;
- unsigned int i, src_depth;
+ int bpp = 24, r = 0, g = 0, b = 0;
+ unsigned int i, src_depth = 16;
if (fd < 0) {
perror(VIDEO_DEV);
---
Patch is available at:
http://linuxtv.org/hg/v4l-dvb/rev/d2fa329db0ea3feace7da7fb8cc9c59e596753d6
_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits