Skip to content

Commit

Permalink
add NULL check missed in [a9b9065]
Browse files Browse the repository at this point in the history
found by Jim Stichnoth

Refs #2077
  • Loading branch information
dekarl committed Apr 24, 2013
1 parent fe8b425 commit f04a8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/programs/mythtranscode/mpeg2fix.cpp
Expand Up @@ -2366,7 +2366,7 @@ int MPEG2fixup::Start()
{
// What to do if the CC is corrupt?
// Just wait and hope it repairs itself
if (CC->sample_rate == 0 || CPC->duration == 0)
if (CC->sample_rate == 0 || !CPC || CPC->duration == 0)
break;

// The order of processing frames is critical to making
Expand Down

0 comments on commit f04a8e4

Please sign in to comment.