diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-25 13:00:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-25 13:34:43 +0200 |
commit | cf401cd12b79a309eaf8d73c5a3ea72ae9836c26 (patch) | |
tree | d921745b7cdf234846d7336312d2fe6d36544b43 /libavformat/rmenc.c | |
parent | 343654c288d0b313c872f9e5f5e3ac85a6745493 (diff) | |
download | ffmpeg-cf401cd12b79a309eaf8d73c5a3ea72ae9836c26.tar.gz |
avformat/rmenc: Avoid floats in duration calculation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rmenc.c')
-rw-r--r-- | libavformat/rmenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rmenc.c b/libavformat/rmenc.c index 73d175d6e7..7e4345bac7 100644 --- a/libavformat/rmenc.c +++ b/libavformat/rmenc.c @@ -102,7 +102,7 @@ static int rv10_write_header(AVFormatContext *ctx, nb_packets += stream->nb_packets; packet_total_size += stream->packet_total_size; /* select maximum duration */ - v = (int) (1000.0 * (float)stream->total_frames / stream->frame_rate); + v = 1000LL * stream->total_frames / stream->frame_rate; if (v > duration) duration = v; } |