Ticket #13186: 013_deinterlace.patch

File 013_deinterlace.patch, 875 bytes (added by Peter Bennett, 6 years ago)

Patch 023 - Fix for deinterlacer bug

  • mythtv/libs/libmythtv/mythplayer.cpp

    diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
    index 2f9dbf9..b925cd8 100644
    a b bool MythPlayer::CanSupportDoubleRate(void) 
    23362336{
    23372337    if (!videosync)
    23382338        return false;
    2339     return (frame_interval / 2.0 > videosync->getRefreshInterval() * 0.995);
     2339    // At this point we may not have the correct frame rate.
     2340    // Since interlaced is always at 25 or 30 fps, if the interval
     2341    // is less than 30000 (33fps) it must be representing one
     2342    // field and not one frame, so multiply by 2.
     2343    int realfi = frame_interval;
     2344    if (frame_interval < 30000)
     2345        realfi = frame_interval * 2;
     2346    return (realfi / 2.0 > videosync->getRefreshInterval() * 0.995);
    23402347}
    23412348
    23422349void MythPlayer::EnableFrameRateMonitor(bool enable)