applemedia: vtdec: fix uninitialized variable warning
authorAlessandro Decina <alessandro.d@gmail.com>
Tue, 17 Nov 2015 00:22:15 +0000 (11:22 +1100)
committerAlessandro Decina <alessandro.d@gmail.com>
Tue, 17 Nov 2015 01:59:58 +0000 (12:59 +1100)
sys/applemedia/vtdec.c

index 2ac9b9c..d24c571 100644 (file)
@@ -444,7 +444,7 @@ gst_vtdec_create_session (GstVtdec * vtdec, GstVideoFormat format)
   VTDecompressionOutputCallbackRecord callback;
   CFMutableDictionaryRef videoDecoderSpecification;
   OSStatus status;
-  guint32 cv_format;
+  guint32 cv_format = 0;
 
   switch (format) {
     case GST_VIDEO_FORMAT_NV12: