[vlc-devel] [PATCH] demux: avcodec: audio: reset reference time on backward seek (fix #9176)

Francois Cartegnie fcvlcdev at free.fr
Thu May 15 20:25:00 CEST 2014


Le 01/05/2014 12:26, Rémi Denis-Courmont a écrit :
> 
>> +            date_Get(
>> &p_sys->end_date ) - p_block->i_pts > AOUT_MAX_PREPARE_TIME
>> +      ) )

> No please. MAX_PREPARE_TIME is only for use by audio outputs (to size play-out 
> buffers) and the core (to detect overflow). This really does not belong in 
> decoders.
> 

I have no real way to guess if there's a discontinuity, as some blocks
might not have duration.

Matching the AOUT_MAX_PREPARE_TIME limit is better than picking an
arbitrary value.

Francois




More information about the vlc-devel mailing list