summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_rawdv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers/demux_rawdv.c')
-rw-r--r--src/demuxers/demux_rawdv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/demuxers/demux_rawdv.c b/src/demuxers/demux_rawdv.c
index bffd4c9c0..aed2b7c75 100644
--- a/src/demuxers/demux_rawdv.c
+++ b/src/demuxers/demux_rawdv.c
@@ -302,7 +302,8 @@ static int demux_raw_dv_seek (demux_plugin_t *this_gen,
}
if( !start_pos && start_time ) {
- start_pos = (start_time * 90 / this->duration) * this->frame_size;
+ /* Upcast start_time in case sizeof(off_t) > sizeof(int) */
+ start_pos = ((off_t) start_time * 90 / this->duration) * this->frame_size;
}
start_pos = start_pos - (start_pos % this->frame_size);