Skip to content

Commit

Permalink
Add null pointer check to fix segfault reported by Paul Harrison.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Nov 28, 2012
1 parent 6eaa373 commit 237ec0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/avformatdecoder.cpp
Expand Up @@ -2207,7 +2207,7 @@ int AvFormatDecoder::ScanStreams(bool novideo)
}
}

if ((uint)ic->bit_rate > bitrate)
if (ic && ((uint)ic->bit_rate > bitrate))
bitrate = (uint)ic->bit_rate;

if (bitrate > 0)
Expand Down

0 comments on commit 237ec0d

Please sign in to comment.