Skip to content

Commit

Permalink
Catch first frame corrupting unsigned count
Browse files Browse the repository at this point in the history
Fixes #9801

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
  • Loading branch information
User authored and Beirdo committed Nov 29, 2011
1 parent f5fd11f commit c4ee599
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/libs/libmythtv/nuppeldecoder.cpp
Expand Up @@ -1124,7 +1124,8 @@ bool NuppelDecoder::GetFrame(DecodeType decodetype)
else if (frameheader.comptype == 'V')
{
lastKey = frameheader.timecode;
framesPlayed = frameheader.timecode - 1;
framesPlayed = (frameheader.timecode > 0 ?
frameheader.timecode - 1 : 0);

if (!hasFullPositionMap)
{
Expand Down

0 comments on commit c4ee599

Please sign in to comment.