Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-06-02 11:09:44 +0400
committerMartin Storsjö <martin@martin.st>2010-06-02 11:09:44 +0400
commit3b963552bc8bd740c8c782778b5b1a427f268cd0 (patch)
treea143e21997f4e4b49565086484f8421f281dab64 /ffserver.c
parent6a7d7b88afeb3771ace52537dc2b091499a32516 (diff)
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
Diffstat (limited to 'ffserver.c')
-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)