comparison libmpdemux/demux_rawdv.c @ 10539:cf5a8eee1597

support for raw DV >2Gb patch by Pierre Beyssac <pb@fasterix.frmug.org>
author gabucino
date Thu, 07 Aug 2003 13:25:03 +0000
parents 1a26db279e50
children 89031188b7b2
comparison
equal deleted inserted replaced
10538:dd2572331142 10539:cf5a8eee1597
38 38
39 void demux_seek_rawdv(demuxer_t *demuxer,float rel_seek_secs,int flags) 39 void demux_seek_rawdv(demuxer_t *demuxer,float rel_seek_secs,int flags)
40 { 40 {
41 rawdv_frames_t *frames = (rawdv_frames_t *)demuxer->priv; 41 rawdv_frames_t *frames = (rawdv_frames_t *)demuxer->priv;
42 sh_video_t *sh_video = demuxer->video->sh; 42 sh_video_t *sh_video = demuxer->video->sh;
43 int newpos=(flags&1)?0:frames->current_frame; 43 off_t newpos=(flags&1)?0:frames->current_frame;
44 if(flags&2) 44 if(flags&2)
45 { 45 {
46 // float 0..1 46 // float 0..1
47 newpos+=rel_seek_secs*frames->frame_number; 47 newpos+=rel_seek_secs*frames->frame_number;
48 } 48 }