mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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>
This commit is contained in:
parent
73f7179924
commit
343654c288
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user