[mythtv] [Patch] small playback bug

michael at optusnet.com.au michael at optusnet.com.au
Sun May 25 15:04:25 EDT 2003


For some reason, the pvr-250 code assumes that the keyframe
distribution is different for PAL. The patch below is needed
to get the slider bar to display the correct times.
(Without this the total length is calculated incorrectly).


diff -u -r1.23 avformatdecoder.cpp
--- avformatdecoder.cpp 23 May 2003 17:55:15 -0000      1.23
+++ avformatdecoder.cpp 25 May 2003 04:03:22 -0000
@@ -251,8 +251,8 @@
  
                 fps = (double)enc->frame_rate / enc->frame_rate_base;
  
-                if (fps < 26 && fps > 24)
-                    keyframedist = 12;
+//                if (fps < 26 && fps > 24)
+//                    keyframedist = 12;
  
                 m_parent->SetVideoParams(enc->width, enc->height, fps,
                                          keyframedist);


More information about the mythtv-dev mailing list