Permalink
Browse files

Fix a potential NULL pointer dereference in an error case.

There will likely be a decoder failure downstream, but at least there
won't be a crash.  This was also identified by Coverity.
  • Loading branch information...
stichnot committed May 24, 2012
1 parent 9b3d59c commit ec2a3df4718d93177faf1632360093ea3adb93f1
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythtv/avformatdecoder.cpp
@@ -2180,7 +2180,7 @@ int AvFormatDecoder::ScanStreams(bool novideo)
if (ringBuffer)
{
ringBuffer->SetBufferSizeFactors(unknownbitrate,
- QString(ic->iformat->name).contains("matroska"));
+ ic && QString(ic->iformat->name).contains("matroska"));
}
PostProcessTracks();

0 comments on commit ec2a3df

Please sign in to comment.