diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-29 15:11:38 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-29 15:11:38 +0000 |
commit | 5960ddb8e5c295145d989c223b3f0029095a2311 (patch) | |
tree | 96ac4fbfc59762228fbaf6a277e6442949b78362 /libmpdemux/demux_rawdv.c | |
parent | da8ab92c7dfab98911c0ae25ba2e88e699f20300 (diff) | |
download | mpv-5960ddb8e5c295145d989c223b3f0029095a2311.tar.bz2 mpv-5960ddb8e5c295145d989c223b3f0029095a2311.tar.xz |
Use defines to give names to the different seek flags.
A better solution should be considered later, esp. for the many
broken demuxers that do not treat these flags correctly.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25911 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_rawdv.c')
-rw-r--r-- | libmpdemux/demux_rawdv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/demux_rawdv.c b/libmpdemux/demux_rawdv.c index 948d2386f0..a21aaabdfd 100644 --- a/libmpdemux/demux_rawdv.c +++ b/libmpdemux/demux_rawdv.c @@ -38,8 +38,8 @@ static void demux_seek_rawdv(demuxer_t *demuxer,float rel_seek_secs,float audio_ { rawdv_frames_t *frames = (rawdv_frames_t *)demuxer->priv; sh_video_t *sh_video = demuxer->video->sh; - off_t newpos=(flags&1)?0:frames->current_frame; - if(flags&2) + off_t newpos=(flags&SEEK_ABSOLUTE)?0:frames->current_frame; + if(flags&SEEK_FACTOR) { // float 0..1 newpos+=rel_seek_secs*frames->frame_number; |