[MPlayer-dev-eng] A-V sync handling

Dan Oscarsson Dan.Oscarsson at tieto.com
Sun Oct 4 18:20:29 CEST 2009

sön 2009-10-04 klockan 19:07 +0300 skrev Uoti Urpala:
> On Sun, 2009-10-04 at 17:33 +0200, Dan Oscarsson wrote:
> > I have tested changing the code to use pts values instead and so far it
> > works fine, and A-V syncing is handled as part of the sleep time
> > calculation instead of separately. Are there any problems doing it this
> > way instead of using "mpctx->delay"?
> Details of course depend on exactly what your "instead" is, but I
> suspect you've at least made it less robust against inconsistent
> timestamps, especially pts resets.

For every frame, mplayer will adjust "delay" when it compares pts values
(in adjust_sync_and_print_status) to correct the A-V sync. If you get
inconsistent timestamps or resets, you should get the same problem
there. Or am I missing something?



More information about the MPlayer-dev-eng mailing list