comparison libmpdemux/demux_mov.c @ 17553:67c30d47ffd4

1. Include audio_delay as an argument to demux_seek. 2. Modify demux_seek_avi to adjust the audio/video stream positions so that mplayer/mencoder will instantly be in sync even when -delay is specified. Other demuxers could be modified similarly in the future.
author corey
date Tue, 07 Feb 2006 20:22:44 +0000
parents 934380353fd6
children 6c541a8421ca
comparison
equal deleted inserted replaced
17552:3469899beb42 17553:67c30d47ffd4
2005 // printf("MOV track seek done: %5.3f \n",pts); 2005 // printf("MOV track seek done: %5.3f \n",pts);
2006 2006
2007 return pts; 2007 return pts;
2008 } 2008 }
2009 2009
2010 static void demux_seek_mov(demuxer_t *demuxer,float pts,int flags){ 2010 static void demux_seek_mov(demuxer_t *demuxer,float pts,float audio_delay,int flags){
2011 mov_priv_t* priv=demuxer->priv; 2011 mov_priv_t* priv=demuxer->priv;
2012 demux_stream_t* ds; 2012 demux_stream_t* ds;
2013 mov_track_t* trak; 2013 mov_track_t* trak;
2014 2014
2015 // printf("MOV seek called %5.3f flag=%d \n",pts,flags); 2015 // printf("MOV seek called %5.3f flag=%d \n",pts,flags);