From: bradleys Date: Mon, 16 Feb 2015 00:06:35 +0000 (+0000) Subject: libhb: Fix compiler warnings in denoise (hqdn3d). X-Git-Tag: 1.0.0~1420 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f2a974344515bc122a39d02ba9160298c7adbd0;p=handbrake libhb: Fix compiler warnings in denoise (hqdn3d). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6909 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/denoise.c b/libhb/denoise.c index 9308d041f..dbeb98664 100644 --- a/libhb/denoise.c +++ b/libhb/denoise.c @@ -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,