]> git.pld-linux.org Git - packages/kodi.git/commitdiff
- fix fps rate for MicroDVD subtitles
authorKarol Krenski <charles@pld-linux.org>
Sun, 12 Feb 2012 22:04:13 +0000 (22:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xbmc-fpsrate.patch -> 1.1

xbmc-fpsrate.patch [new file with mode: 0644]

diff --git a/xbmc-fpsrate.patch b/xbmc-fpsrate.patch
new file mode 100644 (file)
index 0000000..8221466
--- /dev/null
@@ -0,0 +1,15 @@
+--- xbmc-10.0/xbmc/cores/dvdplayer/DVDSubtitles/DVDSubtitleParserMicroDVD.cpp.orig     2010-12-17 07:17:41.000000000 +0100
++++ xbmc-10.0/xbmc/cores/dvdplayer/DVDSubtitles/DVDSubtitleParserMicroDVD.cpp  2011-02-04 22:05:12.000000000 +0100
+@@ -48,7 +48,11 @@
+   CLog::Log(LOGDEBUG, "%s - framerate %d:%d", __FUNCTION__, hints.fpsrate, hints.fpsscale);
+   if (hints.fpsscale > 0 && hints.fpsrate > 0)
+   {
+-    m_framerate = (double)hints.fpsscale / (double)hints.fpsrate;
++    double fpsrate = (double)hints.fpsrate;
++    if (hints.fpsrate == 24)
++      fpsrate = 23.976125;
++
++    m_framerate = (double)hints.fpsscale / fpsrate;
+     m_framerate *= DVD_TIME_BASE;
+   }
+   else
This page took 0.295191 seconds and 4 git commands to generate.