changeset 35892:a8c33658bd4e

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.
author reimar
date Sun, 17 Mar 2013 09:32:12 +0000
parents dd02819472cc
children 6065fb95813e
files libmpdemux/demuxer.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Sun Mar 17 09:32:11 2013 +0000
+++ b/libmpdemux/demuxer.c	Sun Mar 17 09:32:12 2013 +0000
@@ -1327,6 +1327,8 @@
     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);
     }