X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmpegenc.c;h=dce1786b5e2774655de202290153066a592e8051;hb=8f0768cc22788357f603695b86f5e9013652bba6;hp=01ee004f450c126483c87670a433733d188c4989;hpb=d1c28e35300130f0ee28a3e5bbeb2cea403fad57;p=ffmpeg diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index 01ee004f450..dce1786b5e2 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -429,7 +429,7 @@ static int mpeg_mux_init(AVFormatContext *ctx) if (!s->mux_rate) { /* we increase slightly the bitrate to take into account the headers. XXX: compute it exactly */ - bitrate += bitrate*5/100; + bitrate += bitrate / 20; bitrate += 10000; s->mux_rate = (bitrate + (8 * 50) - 1) / (8 * 50); }