Ticket #13419: 20190303_1520_video_reinit_bug.patch

File 20190303_1520_video_reinit_bug.patch, 770 bytes (added by Peter Bennett, 5 years ago)

Fix for repeated video reinitialization bug

  • mythtv/libs/libmythtv/avformatdecoder.cpp

    diff --git a/mythtv/libs/libmythtv/avformatdecoder.cpp b/mythtv/libs/libmythtv/avformatdecoder.cpp
    index 742e0e0523b..f7c0500144b 100644
    a b float AvFormatDecoder::normalized_fps(AVStream *stream, AVCodecContext *enc) 
    14201420        fps = codec_fps;
    14211421    else if (container_fps < 121.0f && container_fps > 3.0f)
    14221422        fps = container_fps;
    1423     else if (estimated_fps < 121.0f && estimated_fps > 3.0f)
    1424         fps = estimated_fps;
    14251423    else if (avg_fps < 121.0f && avg_fps > 3.0f)
    14261424        fps = avg_fps;
     1425    else if (estimated_fps < 121.0f && estimated_fps > 3.0f)
     1426        fps = estimated_fps;
    14271427    else
    14281428        fps = 30000.0f / 1001.0f; // 29.97 fps
    14291429