summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorbradleys <[email protected]>2015-02-16 00:06:35 +0000
committerbradleys <[email protected]>2015-02-16 00:06:35 +0000
commit9f2a974344515bc122a39d02ba9160298c7adbd0 (patch)
tree3dcdb761ee1e94ddcf19ff8f8b0808fbe727cba4 /libhb
parent3adcd92b35be6fb8940c5f249112a263c7ec0ed9 (diff)
libhb: Fix compiler warnings in denoise (hqdn3d).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6909 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/denoise.c12
1 files changed, 8 insertions, 4 deletions
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,