Mercurial > mplayer.hg
diff libmpdemux/demux_rawvideo.c @ 17636:b849a99cdc3c
Second-try commit of this patch.
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.
I've quadruple checked this time; hopefully I haven't missed anything.
author | corey |
---|---|
date | Fri, 17 Feb 2006 01:57:41 +0000 |
parents | fde45c312c31 |
children | 4d81dbdf46b9 |
line wrap: on
line diff
--- a/libmpdemux/demux_rawvideo.c Thu Feb 16 22:43:42 2006 +0000 +++ b/libmpdemux/demux_rawvideo.c Fri Feb 17 01:57:41 2006 +0000 @@ -118,7 +118,7 @@ return 1; } -static void demux_rawvideo_seek(demuxer_t *demuxer,float rel_seek_secs,int flags){ +static void demux_rawvideo_seek(demuxer_t *demuxer,float rel_seek_secs,float audio_delay,int flags){ stream_t* s = demuxer->stream; sh_video_t* sh_video = demuxer->video->sh; off_t pos;