Skip to content

Commit

Permalink
Fix bluray scene changes in HDMV navigation mode.
Browse files Browse the repository at this point in the history
Bluray can include some significant video stream changes that our stream
change handling code cannot deal - especially VC1. By probing the file,
we ensure that all of the video codec parameters are found.

As noted in the code, if enabled by default this would probably help
with some other bugs/issues around stream changes.
  • Loading branch information
Mark Kendall committed Jan 14, 2011
1 parent d4d38f4 commit 65412a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/libs/libmythtv/avformatdecoder.cpp
Expand Up @@ -1661,6 +1661,10 @@ int AvFormatDecoder::ScanStreams(bool novideo)
RemoveAudioStreams();
}

// TODO this could probably be used by default
if (ringBuffer && ringBuffer->IsBD())
av_find_stream_info(ic);

for (uint i = 0; i < ic->nb_streams; i++)
{
AVCodecContext *enc = ic->streams[i]->codec;
Expand Down

0 comments on commit 65412a4

Please sign in to comment.