summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-10-13 00:12:42 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-10-13 00:12:42 +0100
commit42b09362f6a8db8d872b7d2d78c728acd7981bea (patch)
tree90a52d92e21c7c53609e8325f9ca9cb9b2e29b1e
parentc581e6f205f7489ea4ae81cd5fd4078a522dfaa7 (diff)
qtdemux: Fix uninitialized variable warnings
The gcc on the OS/X buildbot complains about these variables not being initialized, even though they can't possibly actually be used uninitialized.
-rw-r--r--gst/qtdemux/qtdemux.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 2246b5947..2ba04e6e8 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -3658,9 +3658,9 @@ qtdemux_parse_samples (GstQTDemux * qtdemux, QtDemuxStream * stream,
QtAtomParser stsc;
QtAtomParser stts;
GNode *ctts;
- guint32 sample_size;
- guint32 n_samples;
- guint32 n_samples_per_chunk;
+ guint32 sample_size = 0;
+ guint32 n_samples = 0;
+ guint32 n_samples_per_chunk = 0;
int sample_index;
QtDemuxSample *samples;
gint i, j, k;
@@ -3803,7 +3803,7 @@ qtdemux_parse_samples (GstQTDemux * qtdemux, QtDemuxStream * stream,
}
done2:
{
- guint32 n_sample_times;
+ guint32 n_sample_times = 0;
guint32 time;
if (!qt_atom_parser_skip (&stts, 4))
@@ -3869,7 +3869,7 @@ qtdemux_parse_samples (GstQTDemux * qtdemux, QtDemuxStream * stream,
/* sample sync, can be NULL */
if (qtdemux_tree_get_child_by_type_full (stbl, FOURCC_stss, &stss)) {
- guint32 n_sample_syncs;
+ guint32 n_sample_syncs = 0;
/* mark keyframes */
if (!qt_atom_parser_skip (&stss, 4))
@@ -4243,8 +4243,8 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
gchar *codec = NULL;
const guint8 *stsd_data;
guint32 version;
- guint32 tkhd_flags;
- guint8 tkhd_version;
+ guint32 tkhd_flags = 0;
+ guint8 tkhd_version = 0;
guint32 fourcc;
guint len;
@@ -4368,7 +4368,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
goto error_encrypted;
if (stream->subtype == FOURCC_vide) {
- guint32 w, h;
+ guint32 w = 0, h = 0;
stream->sampled = TRUE;