Ticket #11420: framesPlayed.patch

File framesPlayed.patch, 531 bytes (added by David Hill <myth@…>, 7 years ago)

Force FF through 'No DTS Hack' when framesPlayed == 0

  • mythtv/libs/libmythtv/avformatdecoder.cpp

    diff --git a/mythtv/libs/libmythtv/avformatdecoder.cpp b/mythtv/libs/libmythtv/avformatdecoder.cpp
    index ef8ccaa..05a49c1 100644
    a b bool AvFormatDecoder::DoFastForward(long long desiredFrame, bool discardFrames) 
    623623
    624624    int normalframes = 0;
    625625
    626     if (st->cur_dts != (int64_t)AV_NOPTS_VALUE)
     626    if ((st->cur_dts != (int64_t)AV_NOPTS_VALUE) && (framesPlayed > 0))
    627627    {
    628628
    629629        int64_t adj_cur_dts = st->cur_dts;