[vlc-devel] [PATCH] Avoid audio blocks with invalid pts and dts
typx at dinauz.org
Sun Jan 15 00:38:47 CET 2012
Le dimanche 15 janvier 2012 à 12:01:58, Denis Charmet a écrit :
> Then problem is the es_out_sys_t field i_preroll_end set by
> ES_OUT_SET_NEXT_DISPLAY_TIME which is resetted to -1 at the end of the
> buffering, which means during buffering all the frames without known
> pts/dts will be trashed as preroll data while they're not...
I've tried to reset i_preroll_end to -1 when I get a block beyond this
date or when a ES_OUT_SET_PCR with a bigger value but it seems to screw
buffering as the buffering duration depends on it.
Then I added another field in the es_out_sys_t also set with
ES_OUT_SET_NEXT_DISPLAY_TIME and resetted when the block date is bigger.
It seems to work correctly.
Now if it's something else again... well I'm lost.
Le mauvais esprit est un art de vivre
More information about the vlc-devel