]> git.sesse.net Git - vlc/commitdiff
modules/video_filter/colorthres.c: set default values
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Sun, 29 Aug 2010 15:19:03 +0000 (17:19 +0200)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Tue, 7 Sep 2010 08:26:37 +0000 (10:26 +0200)
The compiler complained about possible use uninitialized use of the variables
i_u_offset, i_v_offset and i_y_offset.

modules/video_filter/colorthres.c

index ace2fdae774642a6c441732ea145923a49f5d07a..c6c44e071cc8aee2338068cd7a8061bd77aedc66 100644 (file)
@@ -287,7 +287,7 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
         return NULL;
     }
 
-    int i_y_offset, i_u_offset, i_v_offset;
+    int i_y_offset = 0, i_u_offset = 0, i_v_offset = 0;
     GetPackedYuvOffsets( p_filter->fmt_in.video.i_chroma,
                          &i_y_offset, &i_u_offset, &i_v_offset );