summaryrefslogtreecommitdiff
path: root/libavformat/dv.c
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2004-09-22 04:51:01 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2004-09-22 04:51:01 +0000
commit457c649ac41db4765491e98efb877bfd1dd3d118 (patch)
treeee59c205a989ad2df9e2fe6fad3231a6f6d7d5d7 /libavformat/dv.c
parent034aff036fc157aa0c070d4101bbe9e710971134 (diff)
* fixing a regression introduced by the last seek-support patch
Originally committed as revision 3490 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/dv.c')
-rw-r--r--libavformat/dv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c
index 2867ec0c11..9606bae65b 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -830,8 +830,8 @@ int64_t dv_frame_offset(DVDemuxContext *c, int64_t timestamp)
sys = dv_codec_profile(&c->vst->codec);
// timestamp was scaled by time_base/AV_BASE_RATE by av_seek_frame()
- frame_number = av_rescale(sys->frame_rate, timestamp,
- (int64_t) 30000 * sys->frame_rate_base);
+ frame_number = (timestamp * sys->frame_rate) /
+ ((int64_t) 30000 * sys->frame_rate_base);
// offset must be a multiple of frame_size else dv_read_packet() will fail
offset = (int64_t) sys->frame_size * frame_number;