]> granicus.if.org Git - handbrake/commitdiff
libhb: Fix compiler warnings in denoise (hqdn3d).
authorbradleys <bradley@bradleysepos.com>
Mon, 16 Feb 2015 00:06:35 +0000 (00:06 +0000)
committerbradleys <bradley@bradleysepos.com>
Mon, 16 Feb 2015 00:06:35 +0000 (00:06 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6909 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/denoise.c

index 9308d041fae555abb35083c3e26a68cc06a2a3d1..dbeb9866481933d260c6ebaa6729a8d72e9a9963 100644 (file)
@@ -220,10 +220,14 @@ static int hb_denoise_init( hb_filter_object_t * filter,
     filter->private_data = calloc( sizeof(struct hb_filter_private_s), 1 );
     hb_filter_private_t * pv = filter->private_data;
 
-    double spatial_luma,  spatial_chroma_b,  spatial_chroma_r;
-    double temporal_luma, temporal_chroma_b, temporal_chroma_r;
-
-    if( filter->settings )
+    double spatial_luma      = 0.0f,
+           spatial_chroma_b  = 0.0f,
+           spatial_chroma_r  = 0.0f,
+           temporal_luma     = 0.0f,
+           temporal_chroma_b = 0.0f,
+           temporal_chroma_r = 0.0f;
+
+    if (filter->settings != NULL)
     {
         switch( sscanf( filter->settings, "%lf:%lf:%lf:%lf:%lf:%lf",
                         &spatial_luma, &spatial_chroma_b, &spatial_chroma_r,