diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-09-21 10:19:30 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-09-21 10:19:30 +0000 |
commit | aace1f9b861dc533a3e979673dfa4b2f19314691 (patch) | |
tree | 1ead8be96acd495467a6c789338afff7d7e6473f | |
parent | bd1b79a1457f3cb210b15ebfc2855ad9ab8f7b2c (diff) | |
download | ffmpeg-aace1f9b861dc533a3e979673dfa4b2f19314691.tar.gz |
gcc 2.95 compile fix by (Jan Knutar <jknutar at nic dot fi>)
Originally committed as revision 3486 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/dv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c index 6398f1c427..2867ec0c11 100644 --- a/libavformat/dv.c +++ b/libavformat/dv.c @@ -824,16 +824,17 @@ int dv_produce_packet(DVDemuxContext *c, AVPacket *pkt, 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; } |