From 0c0175429f974b607f085c56be152ed5c3c20251 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Tue, 4 Oct 2011 11:16:10 +0300 Subject: demux_qt: fixed using uninitialized data --- src/demuxers/demux_qt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c index 7c6f7efe3..70b325535 100644 --- a/src/demuxers/demux_qt.c +++ b/src/demuxers/demux_qt.c @@ -1802,11 +1802,12 @@ static void get_next_edit_list_entry(qt_trak *trak, int64_t *edit_list_duration, unsigned int global_timescale) { + *edit_list_media_time = 0; + *edit_list_duration = MAX_DURATION; + /* if there is no edit list, set to max duration and get out */ if (!trak->edit_list_table) { - *edit_list_media_time = 0; - *edit_list_duration = MAX_DURATION; debug_edit_list(" qt: no edit list table, initial = %d, %"PRId64"\n", *edit_list_media_time, *edit_list_duration); return; -- cgit v1.2.3