Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
7e12a542
Commit
7e12a542
authored
Aug 18, 2015
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffserver: use -b instead of -ab for setting audio bitrate.
parent
2fb593dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ffserver_config.c
ffserver_config.c
+3
-3
No files found.
ffserver_config.c
View file @
7e12a542
...
@@ -230,9 +230,9 @@ static void add_codec(FFServerStream *stream, AVCodecContext *av,
...
@@ -230,9 +230,9 @@ static void add_codec(FFServerStream *stream, AVCodecContext *av,
/* compute default parameters */
/* compute default parameters */
switch
(
av
->
codec_type
)
{
switch
(
av
->
codec_type
)
{
case
AVMEDIA_TYPE_AUDIO
:
case
AVMEDIA_TYPE_AUDIO
:
if
(
!
av_dict_get
(
recommended
,
"
a
b"
,
NULL
,
0
))
{
if
(
!
av_dict_get
(
recommended
,
"b"
,
NULL
,
0
))
{
av
->
bit_rate
=
64000
;
av
->
bit_rate
=
64000
;
av_dict_set_int
(
&
recommended
,
"
a
b"
,
av
->
bit_rate
,
0
);
av_dict_set_int
(
&
recommended
,
"b"
,
av
->
bit_rate
,
0
);
WARNING
(
"Setting default value for audio bit rate = %d. "
WARNING
(
"Setting default value for audio bit rate = %d. "
"Use NoDefaults to disable it.
\n
"
,
"Use NoDefaults to disable it.
\n
"
,
av
->
bit_rate
);
av
->
bit_rate
);
...
@@ -923,7 +923,7 @@ static int ffserver_parse_config_stream(FFServerConfig *config, const char *cmd,
...
@@ -923,7 +923,7 @@ static int ffserver_parse_config_stream(FFServerConfig *config, const char *cmd,
ffserver_get_arg
(
arg
,
sizeof
(
arg
),
p
);
ffserver_get_arg
(
arg
,
sizeof
(
arg
),
p
);
ffserver_set_float_param
(
&
f
,
arg
,
1000
,
-
FLT_MAX
,
FLT_MAX
,
config
,
ffserver_set_float_param
(
&
f
,
arg
,
1000
,
-
FLT_MAX
,
FLT_MAX
,
config
,
"Invalid %s: '%s'
\n
"
,
cmd
,
arg
);
"Invalid %s: '%s'
\n
"
,
cmd
,
arg
);
if
(
ffserver_save_avoption_int
(
"
a
b"
,
(
int64_t
)
lrintf
(
f
),
if
(
ffserver_save_avoption_int
(
"b"
,
(
int64_t
)
lrintf
(
f
),
AV_OPT_FLAG_AUDIO_PARAM
,
config
)
<
0
)
AV_OPT_FLAG_AUDIO_PARAM
,
config
)
<
0
)
goto
nomem
;
goto
nomem
;
}
else
if
(
!
av_strcasecmp
(
cmd
,
"AudioChannels"
))
{
}
else
if
(
!
av_strcasecmp
(
cmd
,
"AudioChannels"
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment