Skip to content
Browse files

Fixes "Could not open decoder" error playing a recording

Fixes #12787
1 parent 4453e98 commit 68e133ca61b0e2f61e96b32c9cb62735426c21cb @bennettpeter bennettpeter committed Jun 21, 2016
Showing with 6 additions and 0 deletions.
  1. +6 −0 mythtv/libs/libmythtv/avformatdecoder.cpp
View
6 mythtv/libs/libmythtv/avformatdecoder.cpp
@@ -1021,6 +1021,12 @@ int AvFormatDecoder::FindStreamInfo(void)
silence_ffmpeg_logging = true;
int retval = avformat_find_stream_info(ic, NULL);
silence_ffmpeg_logging = false;
+ // ffmpeg 3.0 is returning -1 code when there is a channel
+ // change or some encoding error just after the start
+ // of the file, but is has found the correct stream info
+ // Set rc to 0 so that playing can continue.
+ if (retval == -1)
+ retval = 0;
return retval;
}

0 comments on commit 68e133c

Please sign in to comment.
Something went wrong with that request. Please try again.