Mercurial > libavformat.hg
changeset 527:1559f6441395 libavformat
gcc 2.95 compile fix by (Jan Knutar <jknutar at nic dot fi>)
author | michael |
---|---|
date | Tue, 21 Sep 2004 10:19:30 +0000 |
parents | c5743d66c5ca |
children | 0f9b7efc444b |
files | dv.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dv.c Sun Sep 19 19:24:56 2004 +0000 +++ b/dv.c Tue Sep 21 10:19:30 2004 +0000 @@ -824,16 +824,17 @@ int64_t dv_frame_offset(DVDemuxContext *c, int64_t timestamp) { const DVprofile* sys; + int64_t frame_number, offset; // FIXME: sys may be wrong if last dv_read_packet() failed (buffer is junk) sys = dv_codec_profile(&c->vst->codec); // timestamp was scaled by time_base/AV_BASE_RATE by av_seek_frame() - int64_t frame_number = av_rescale(sys->frame_rate, timestamp, + frame_number = av_rescale(sys->frame_rate, timestamp, (int64_t) 30000 * sys->frame_rate_base); // offset must be a multiple of frame_size else dv_read_packet() will fail - int64_t offset = (int64_t) sys->frame_size * frame_number; + offset = (int64_t) sys->frame_size * frame_number; return offset; }