Commit bca43954 authored by Laurent Aimar's avatar Laurent Aimar

Fixed DecoderUpdatePreroll.

It makes prerolling less precise but it will avoid loosing valid
frame.
parent 8610a92b
......@@ -1029,10 +1029,10 @@ static inline void DecoderUpdatePreroll( int64_t *pi_preroll, const block_t *p )
{
if( p->i_flags & (BLOCK_FLAG_PREROLL|BLOCK_FLAG_DISCONTINUITY) )
*pi_preroll = INT64_MAX;
else if( p->i_pts > 0 )
*pi_preroll = __MIN( *pi_preroll, p->i_pts );
else if( p->i_dts > 0 )
*pi_preroll = __MIN( *pi_preroll, p->i_dts );
else if( p->i_pts > 0 )
*pi_preroll = __MIN( *pi_preroll, p->i_pts );
}
static mtime_t DecoderTeletextFixTs( mtime_t i_ts )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment