Commit aeecea26 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (11225): 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
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 7ddfda9a
...@@ -105,8 +105,8 @@ int main(int argc, char ** argv) ...@@ -105,8 +105,8 @@ int main(int argc, char ** argv)
struct video_picture vpic; struct video_picture vpic;
unsigned char *buffer, *src; unsigned char *buffer, *src;
int bpp = 24, r, g, b; int bpp = 24, r = 0, g = 0, b = 0;
unsigned int i, src_depth; unsigned int i, src_depth = 16;
if (fd < 0) { if (fd < 0) {
perror(VIDEO_DEV); perror(VIDEO_DEV);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment