Skip to content

Commit

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

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
(cherry picked from commit c4ee599)
  • Loading branch information
User authored and Beirdo committed Nov 29, 2011
1 parent 6021234 commit 03cff20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/libs/libmythtv/nuppeldecoder.cpp
Expand Up @@ -1129,7 +1129,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 03cff20

Please sign in to comment.