From 317d2ea88b710a00247922ca7282696b270674fa Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 20 Jan 2005 10:56:25 +0000 Subject: [PATCH] No entries in a timecode v1 style file are OK. Only the FPS will change then. Also added Steve Lhomme to the list of people having contributed to this file. --- src/merge/timecode_factory.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/merge/timecode_factory.cpp b/src/merge/timecode_factory.cpp index 2ffc1c6ba..656f444b3 100644 --- a/src/merge/timecode_factory.cpp +++ b/src/merge/timecode_factory.cpp @@ -11,6 +11,7 @@ the timecode factory Written by Moritz Bunkus . + Modifications by Steve Lhomme . */ #include @@ -125,11 +126,9 @@ timecode_factory_v1_c::parse(mm_io_c &in) { mxverb(3, "ext_timecodes: Version 1, default fps %f, %u entries.\n", default_fps, ranges.size()); - if (ranges.size() == 0) { - mxwarn(_("The timecode file '%s' does not contain any valid entry.\n"), - file_name.c_str()); + if (ranges.size() == 0) t.start_frame = 0; - } else { + else { sort(ranges.begin(), ranges.end()); do { done = true;