videoconvert: Fix compiler warnings
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 11 Jul 2012 10:57:28 +0000 (12:57 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 11 Jul 2012 10:57:28 +0000 (12:57 +0200)
videoconvert.c: In function 'videoconvert_convert_new':
videoconvert.c:287:11: error: 'Kr' may be used uninitialized in this function
videoconvert.c:287:15: error: 'Kb' may be used uninitialized in this function

gst/videoconvert/videoconvert.c

index a4837a9..faaa7a8 100644 (file)
@@ -284,7 +284,7 @@ videoconvert_convert_compute_matrix (VideoConvert * convert)
   const GstVideoFormatInfo *sfinfo, *dfinfo;
   gint depth;
   gint offset[4], scale[4];
-  gdouble Kr, Kb;
+  gdouble Kr = 0, Kb = 0;
 
   in_info = &convert->in_info;
   out_info = &convert->out_info;