Ticket #8144: initial_fps_incorrect.patch

File initial_fps_incorrect.patch, 602 bytes (added by skamithi, 11 years ago)
  • mythtv/libs/libmythtv/avformatdecoder.cpp

    diff --git a/mythtv/libs/libmythtv/avformatdecoder.cpp b/mythtv/libs/libmythtv/avformatdecoder.cpp
    index 0226350..771714a 100644
    a b void AvFormatDecoder::InitVideoCodec(AVStream *stream, AVCodecContext *enc, 
    13721372
    13731373    if (selectedStream)
    13741374    {
    1375         fps = normalized_fps(stream, enc);
     1375        if (ringBuffer->isDVD())
     1376            fps = ringBuffer->DVD()->GetFrameRate();
     1377        else
     1378            fps = normalized_fps(stream, enc);
    13761379
    13771380
    13781381        if (stream->sample_aspect_ratio.num)