aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asf-enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-02-04 11:26:40 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-02-04 11:26:40 +0000
commit8d65750ef1089561f0257fa1719b3094f341d16f (patch)
tree2eb2c88897378917d5f21423b8dfbda4a82ca175 /libavformat/asf-enc.c
parent3a615bb548550d10fd81750c1a23b7d9ccd10bfa (diff)
downloadffmpeg-8d65750ef1089561f0257fa1719b3094f341d16f.tar.gz
overflows
Originally committed as revision 3935 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf-enc.c')
-rw-r--r--libavformat/asf-enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/asf-enc.c b/libavformat/asf-enc.c
index 747bdee812..ad94872d56 100644
--- a/libavformat/asf-enc.c
+++ b/libavformat/asf-enc.c
@@ -700,10 +700,10 @@ static int asf_write_packet(AVFormatContext *s, AVPacket *pkt)
//XXX /FIXME use duration from AVPacket
if (codec->codec_type == CODEC_TYPE_AUDIO) {
- duration = (codec->frame_number * codec->frame_size * int64_t_C(10000000)) /
+ duration = (codec->frame_number * (int64_t)codec->frame_size * int64_t_C(10000000)) /
codec->sample_rate;
} else {
- duration = av_rescale(codec->frame_number * codec->frame_rate_base, 10000000, codec->frame_rate);
+ duration = av_rescale(codec->frame_number * (int64_t)codec->frame_rate_base, 10000000, codec->frame_rate);
}
if (duration > asf->duration)
asf->duration = duration;