From 9d2e8af2dec9d7507a1a2fc3971cbdbad7027164 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 29 Jul 2004 17:50:20 +0000 Subject: [PATCH] Avoid some warnings when compiling with -O3. --- src/common/flac_common.cpp | 2 ++ src/mkvmerge.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/common/flac_common.cpp b/src/common/flac_common.cpp index e1daea90c..e8779735b 100644 --- a/src/common/flac_common.cpp +++ b/src/common/flac_common.cpp @@ -80,6 +80,8 @@ flac_get_num_samples(unsigned char *mem, if (!bits.get_bits(4, value)) return -1; + free_sample_size = 0; + samples = 0; if (value == 0) samples = stream_info.min_blocksize; else if (value == 1) diff --git a/src/mkvmerge.cpp b/src/mkvmerge.cpp index 4b72e4b00..ebf777009 100644 --- a/src/mkvmerge.cpp +++ b/src/mkvmerge.cpp @@ -2492,6 +2492,7 @@ add_tags_from_cue_chapters() { return; found = false; + tuid = 0; for (i = 0; i < ptzrs_in_header_order.size(); i++) if (ptzrs_in_header_order[i]->get_track_type() == 'v') { found = true;