OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a7d7b8
)
ffserver: Allow floating point audio bit rates
author
Martin Storsjö
<martin@martin.st>
Wed, 2 Jun 2010 07:09:44 +0000
(07:09 +0000)
committer
Martin Storsjö
<martin@martin.st>
Wed, 2 Jun 2010 07:09:44 +0000
(07:09 +0000)
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
ffserver.c
patch
|
blob
|
history
diff --git
a/ffserver.c
b/ffserver.c
index
faea1a7
..
7af4938
100644
(file)
--- 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)