git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1188
d19143bc-622f-0410-bfdd-
b5b2a6649095
}
// If we're behind, ignore this packet
- float current_pts = av_q2d( stream->time_base ) * pkt.pts;
- if ( seekable && ( !ignore && current_pts <= ( real_timecode - 0.02 ) ) )
- ignore = 1;
+ if ( pkt.pts >= 0 )
+ {
+ float current_pts = av_q2d( stream->time_base ) * pkt.pts;
+ if ( seekable && ( !ignore && current_pts <= ( real_timecode - 0.02 ) ) )
+ ignore = 1;
+ }
}
// We're finished with this packet regardless