diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-25 12:57:22 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-25 13:34:34 +0200 |
commit | 343654c288d0b313c872f9e5f5e3ac85a6745493 (patch) | |
tree | 54f09458b2b24d9a1667867e6d11ca90901a7326 | |
parent | 73f71799242e9f1258ff80b0afcafaf50aed23ca (diff) |
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>
-rw-r--r-- | libavformat/mpegenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index 4984d57435..2520f49db1 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -321,7 +321,7 @@ static av_cold int mpeg_mux_init(AVFormatContext *ctx) } else s->packet_size = 2048; if (ctx->max_delay < 0) /* Not set by the caller */ - ctx->max_delay = 0.7*AV_TIME_BASE; + ctx->max_delay = AV_TIME_BASE*7/10; s->vcd_padding_bytes_written = 0; s->vcd_padding_bitrate_num = 0; |