Commit c0c50ba9 authored by mstorsjo's avatar mstorsjo

ffserver: Allow floating point audio bit rates

This allows setting bit rates that aren't an exact multiple of 1000.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23419 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 508f2fe0
...@@ -4300,7 +4300,7 @@ static int parse_ffconfig(const char *filename) ...@@ -4300,7 +4300,7 @@ static int parse_ffconfig(const char *filename)
} else if (!strcasecmp(cmd, "AudioBitRate")) { } else if (!strcasecmp(cmd, "AudioBitRate")) {
get_arg(arg, sizeof(arg), &p); get_arg(arg, sizeof(arg), &p);
if (stream) if (stream)
audio_enc.bit_rate = atoi(arg) * 1000; audio_enc.bit_rate = lrintf(atof(arg) * 1000);
} else if (!strcasecmp(cmd, "AudioChannels")) { } else if (!strcasecmp(cmd, "AudioChannels")) {
get_arg(arg, sizeof(arg), &p); get_arg(arg, sizeof(arg), &p);
if (stream) if (stream)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment