Browse code

avformat/mpegenc: Replace *0.7 by *7/10

This avoids another float computation, avoiding a potential source of
rounding issues

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2015/05/25 19:57:22
Showing 1 changed files
... ...
@@ -321,7 +321,7 @@ static av_cold int mpeg_mux_init(AVFormatContext *ctx)
321 321
     } else
322 322
         s->packet_size = 2048;
323 323
     if (ctx->max_delay < 0)     /* Not set by the caller */
324
-        ctx->max_delay = 0.7*AV_TIME_BASE;
324
+        ctx->max_delay = AV_TIME_BASE*7/10;
325 325
 
326 326
     s->vcd_padding_bytes_written = 0;
327 327
     s->vcd_padding_bitrate_num   = 0;