aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-06-02 07:09:44 +0000
committerMartin Storsjö <martin@martin.st>2010-06-02 07:09:44 +0000
commit3b963552bc8bd740c8c782778b5b1a427f268cd0 (patch)
treea143e21997f4e4b49565086484f8421f281dab64
parent6a7d7b88afeb3771ace52537dc2b091499a32516 (diff)
downloadffmpeg-3b963552bc8bd740c8c782778b5b1a427f268cd0.tar.gz
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
-rw-r--r--ffserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index faea1a7dec..7af4938fe4 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)