mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
avformat/rmenc: Avoid floats in duration calculation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
343654c288
commit
cf401cd12b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user