[MPlayer-cvslog] r35543 - trunk/libmpdemux/demuxer.c
reimar
subversion at mplayerhq.hu
Fri Nov 30 23:16:16 CET 2012
Author: reimar
Date: Fri Nov 30 23:16:16 2012
New Revision: 35543
Log:
Make stream eof detection less sensitive.
Fixes bug #2111.
Modified:
trunk/libmpdemux/demuxer.c
Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c Fri Nov 30 23:12:17 2012 (r35542)
+++ trunk/libmpdemux/demuxer.c Fri Nov 30 23:16:16 2012 (r35543)
@@ -710,7 +710,10 @@ int ds_fill_buffer(demux_stream_t *ds)
// avoid buffering too far ahead in e.g. badly interleaved files
// or when one stream is shorter, without breaking large audio
// delay with well interleaved files.
- if (ds->fill_count > 20)
+ // This needs to be enough for at least 1 second of packets
+ // since libavformat mov demuxer does not try to interleave
+ // with more than 1s precision.
+ if (ds->fill_count > 80)
break;
// avoid printing the "too many ..." message over and over
if (ds->eof)
More information about the MPlayer-cvslog
mailing list