[MPlayer-cvslog] r35986 - trunk/libmpdemux/demuxer.c

reimar subversion at mplayerhq.hu
Sun Mar 17 10:32:12 CET 2013


Author: reimar
Date: Sun Mar 17 10:32:12 2013
New Revision: 35986

Log:
Allow audio/video queues to fill up a bit more right after seeking.

Bad interleaving can have more extreme effects when seeking
to random locations.
Fixes bug #2128.

Modified:
   trunk/libmpdemux/demuxer.c

Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c	Sun Mar 17 10:32:11 2013	(r35985)
+++ trunk/libmpdemux/demuxer.c	Sun Mar 17 10:32:12 2013	(r35986)
@@ -1327,6 +1327,8 @@ static void demux_resync(demuxer_t *demu
     sh_video_t *sh_video = demuxer->video->sh;
     sh_audio_t *sh_audio = demuxer->audio->sh;
     demux_control(demuxer, DEMUXER_CTRL_RESYNC, NULL);
+    demuxer->audio->fill_count = -80;
+    demuxer->video->fill_count = -80;
     if (sh_video) {
         resync_video_stream(sh_video);
     }


More information about the MPlayer-cvslog mailing list