Ticket #12787: ticket_12787.patch

File ticket_12787.patch, 726 bytes (added by Peter Bennett, 8 years ago)

Fix for this bug

  • mythtv/libs/libmythtv/avformatdecoder.cpp

    diff --git a/mythtv/libs/libmythtv/avformatdecoder.cpp b/mythtv/libs/libmythtv/avformatdecoder.cpp
    index 613f501..dfd02e1 100644
    a b int AvFormatDecoder::FindStreamInfo(void) 
    10211021        silence_ffmpeg_logging = true;
    10221022    int retval = avformat_find_stream_info(ic, NULL);
    10231023    silence_ffmpeg_logging = false;
     1024    // ffmpeg 3.0 is returning -1 code when there is a channel
     1025    // change or some encoding error just after the start
     1026    // of the file, but is has found the correct stream info
     1027    // Set rc to 0 so that playing can continue.
     1028    if (retval == -1)
     1029        retval = 0;
    10241030    return retval;
    10251031}
    10261032