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

nicodvb subversion at mplayerhq.hu
Tue Sep 19 00:32:51 CEST 2006


Author: nicodvb
Date: Tue Sep 19 00:32:51 2006
New Revision: 19902

Modified:
   trunk/libmpdemux/demux_mpg.c

Log:
demuxer->movi_end is updated after ds_fill_buffer(),
this in demux_mpg_probe() end_seq_start must be assigned
after ds_fill_buffer


Modified: trunk/libmpdemux/demux_mpg.c
==============================================================================
--- trunk/libmpdemux/demux_mpg.c	(original)
+++ trunk/libmpdemux/demux_mpg.c	Tue Sep 19 00:32:51 2006
@@ -106,11 +106,12 @@
 static demuxer_t* demux_mpg_open(demuxer_t* demuxer) {
   stream_t *s = demuxer->stream;
   off_t pos = stream_tell(s);
-  off_t end_seq_start = demuxer->movi_end-TIMESTAMP_PROBE_LEN;
+  off_t end_seq_start;
   float half_pts = 0.0;
   mpg_demuxer_t* mpg_d;
 
   if (!ds_fill_buffer(demuxer->video)) return 0;
+  end_seq_start = demuxer->movi_end-TIMESTAMP_PROBE_LEN;
   mpg_d = calloc(1,sizeof(mpg_demuxer_t));
   demuxer->priv = mpg_d;
   mpg_d->final_pts = 0.0;



More information about the MPlayer-cvslog mailing list