Mercurial > libavformat.hg
changeset 528:0f9b7efc444b libavformat
* fixing a regression introduced by the last seek-support patch
author | romansh |
---|---|
date | Wed, 22 Sep 2004 04:51:01 +0000 |
parents | 1559f6441395 |
children | 0b867ba59753 |
files | dv.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dv.c Tue Sep 21 10:19:30 2004 +0000 +++ b/dv.c Wed Sep 22 04:51:01 2004 +0000 @@ -830,8 +830,8 @@ 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;