[MPlayer-cvslog] r36845 - trunk/libmpdemux/demux_mpg.c

reimar subversion at mplayerhq.hu
Sun Feb 16 14:24:55 CET 2014


Author: reimar
Date: Sun Feb 16 14:24:55 2014
New Revision: 36845

Log:
Fix probe bug losing video packets.

ds_fill_buffer will actually lose any data from previous
ds_fill_buffer calls.
Use demux_fill_buffer instead to get the intended behaviour.

Modified:
   trunk/libmpdemux/demux_mpg.c

Modified: trunk/libmpdemux/demux_mpg.c
==============================================================================
--- trunk/libmpdemux/demux_mpg.c	Sat Feb 15 18:24:29 2014	(r36844)
+++ trunk/libmpdemux/demux_mpg.c	Sun Feb 16 14:24:55 2014	(r36845)
@@ -195,7 +195,7 @@ static demuxer_t* demux_mpg_open(demuxer
   demuxer->priv = mpg_d;
 
   while (demuxer->video->packs + demuxer->audio->packs < 2)
-    if (!ds_fill_buffer(demuxer->video)) return 0;
+    if (!demux_fill_buffer(demuxer, demuxer->video)) return 0;
     mpg_d->last_pts = -1.0;
     mpg_d->first_pts = -1.0;
 


More information about the MPlayer-cvslog mailing list