1
mirror of https://github.com/mpv-player/mpv synced 2024-11-03 03:19:24 +01:00

demuxer->movi_end is updated after ds_fill_buffer(),

this in demux_mpg_probe() end_seq_start must be assigned
after ds_fill_buffer


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19902 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2006-09-18 22:32:51 +00:00
parent 9490ae823a
commit bc996f4dee

View File

@ -106,11 +106,12 @@ static int parse_psm(demuxer_t *demux, int len) {
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;