diff --git a/ffserver.c b/ffserver.c index faea1a7decb386592a3ae0ab75c7aca004b3f38c..7af4938fe4042039321d1cb93b89fac14175ee94 100644 --- a/ffserver.c +++ b/ffserver.c @@ -4300,7 +4300,7 @@ static int parse_ffconfig(const char *filename) } else if (!strcasecmp(cmd, "AudioBitRate")) { get_arg(arg, sizeof(arg), &p); if (stream) - audio_enc.bit_rate = atoi(arg) * 1000; + audio_enc.bit_rate = lrintf(atof(arg) * 1000); } else if (!strcasecmp(cmd, "AudioChannels")) { get_arg(arg, sizeof(arg), &p); if (stream)