mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
ffserver: Allow floating point audio bit rates
This allows setting bit rates that aren't an exact multiple of 1000. Originally committed as revision 23419 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6a7d7b88af
commit
3b963552bc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user