From c5d8499c0d1a78fb969e9e20197428afc0c37ff4 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Sun, 10 Jan 2010 14:36:38 +0000 Subject: [PATCH] Try to fix NTSC timecode problems: http://www.kdenlive.org/mantis/view.php?id=1376 svn path=/trunk/kdenlive/; revision=4220 --- src/timecode.cpp | 4 ++-- src/timecode.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/timecode.cpp b/src/timecode.cpp index 8bf4e0b0..3c364d73 100644 --- a/src/timecode.cpp +++ b/src/timecode.cpp @@ -31,9 +31,9 @@ Timecode::~Timecode() { } -int Timecode::fps() const +double Timecode::fps() const { - return m_displayedFramesPerSecond; + return m_realFps; //m_displayedFramesPerSecond; } diff --git a/src/timecode.h b/src/timecode.h index c28c25e3..e17e4379 100644 --- a/src/timecode.h +++ b/src/timecode.h @@ -54,7 +54,7 @@ public: static QString getEasyTimecode(const GenTime & time, const double &fps); static QString getStringTimecode(int frames, const double &fps); const QString getTimecodeFromFrames(int frames) const; - int fps() const; + double fps() const; private: Formats m_format; -- 2.39.5