diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/demuxers/demux_rawdv.c | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -12,6 +12,7 @@ xine-lib (1.1.17) 2009-??-?? * Added padding delay to the first and last frames (MPEG audio). * Fixed buggy discontinuity handling when playing short streams and using the gapless switch. The current time should not be used here. * Added audio padding handling. (New buffer flag for this.) + * Fix seeking in large raw DV files. xine-lib (1.1.16.3) 2009-04-03 * Security fixes: diff --git a/src/demuxers/demux_rawdv.c b/src/demuxers/demux_rawdv.c index 86f777ec6..d95fc9125 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); |