From dce6b8c2ea60100d3396ccdbb9cad99f93d07ee2 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 22 May 2005 08:30:32 +0000 Subject: [PATCH] The duration is not the end ;) --- src/input/r_usf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/r_usf.cpp b/src/input/r_usf.cpp index 68a822ccb..802fdff59 100644 --- a/src/input/r_usf.cpp +++ b/src/input/r_usf.cpp @@ -243,8 +243,8 @@ usf_reader_c::start_cb(const char *name, entry.m_end = parse_timecode(atts[i + 1]); else if (!strcmp(atts[i], "duration")) duration = parse_timecode(atts[i + 1]); - if (-1 == entry.m_end) - entry.m_end = duration; + if ((-1 == entry.m_end) && (-1 != entry.m_start) && (-1 != duration)) + entry.m_end = entry.m_start + duration; m_copy_buffer = ""; m_copy_depth = 1; m_strip = true;