From 272706ce9d01e41a61f09106f669ef26ad22b6a7 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 8 Jul 2007 14:38:43 +0000 Subject: [PATCH] Cosmetics. --- src/input/r_qtmp4.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/input/r_qtmp4.cpp b/src/input/r_qtmp4.cpp index 395c07a7b..105ac22c9 100644 --- a/src/input/r_qtmp4.cpp +++ b/src/input/r_qtmp4.cpp @@ -432,18 +432,17 @@ qtmp4_reader_c::calculate_timecodes() { } if (0 > min_timecode) { - mxforeach(idmx, demuxers) - (*idmx)->adjust_timecodes(-1 * min_timecode); - } else - min_timecode = 0; - - if (0 != min_timecode) { min_timecode *= -1; + mxforeach(idmx, demuxers) + (*idmx)->adjust_timecodes(min_timecode); + mxwarn("This file contains at least one frame with a negative " "timecode. mkvmerge will adjust all timecodes by " FMT_TIMECODEN " so that none is negative anymore.\n", ARG_TIMECODEN(min_timecode)); - } + + } else + min_timecode = 0; } // Also taken from mplayer's demux_mov.c file.