Ticket #12004: seek.patch

File seek.patch, 610 bytes (added by Jim Stichnoth, 10 years ago)

Proof of concept.

  • mythtv/libs/libmythtv/avformatdecoder.cpp

    diff --git a/mythtv/libs/libmythtv/avformatdecoder.cpp b/mythtv/libs/libmythtv/avformatdecoder.cpp
    index 3a42b40..5d7118d 100644
    a b void AvFormatDecoder::SeekReset(long long newKey, uint skipFrames, 
    759759    }
    760760
    761761    // Skip all the desired number of skipFrames
    762     for (;skipFrames > 0 && !ateof; skipFrames--)
     762    QTime begin;
     763    begin.start();
     764    for (;skipFrames > 0 && !ateof && begin.elapsed() < 100; skipFrames--)
    763765    {
    764766        GetFrame(kDecodeVideo);
    765767        if (decoded_video_frame)