Browse Source

avformat/rmenc: Avoid floats in duration calculation

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 10 years ago
parent
commit
cf401cd12b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rmenc.c

+ 1
- 1
libavformat/rmenc.c View File

@@ -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…
Cancel
Save