diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2015-08-18 15:19:26 +0300 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2015-08-28 21:59:58 +0300 |
commit | 7e12a54251148f8d2756161bcf09f631a6c144db (patch) | |
tree | a24e97d44ab277d849330d48663e57dc21081cb3 | |
parent | 2fb593dcb90c157a183e9e01e42405fcca73a8b8 (diff) |
ffserver: use -b instead of -ab for setting audio bitrate.
-rw-r--r-- | ffserver_config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ffserver_config.c b/ffserver_config.c index 06bd8ac44a..de8a4547fb 100644 --- a/ffserver_config.c +++ b/ffserver_config.c @@ -230,9 +230,9 @@ static void add_codec(FFServerStream *stream, AVCodecContext *av, /* compute default parameters */ switch(av->codec_type) { case AVMEDIA_TYPE_AUDIO: - if (!av_dict_get(recommended, "ab", NULL, 0)) { + if (!av_dict_get(recommended, "b", NULL, 0)) { av->bit_rate = 64000; - av_dict_set_int(&recommended, "ab", av->bit_rate, 0); + av_dict_set_int(&recommended, "b", av->bit_rate, 0); WARNING("Setting default value for audio bit rate = %d. " "Use NoDefaults to disable it.\n", av->bit_rate); @@ -923,7 +923,7 @@ static int ffserver_parse_config_stream(FFServerConfig *config, const char *cmd, ffserver_get_arg(arg, sizeof(arg), p); ffserver_set_float_param(&f, arg, 1000, -FLT_MAX, FLT_MAX, config, "Invalid %s: '%s'\n", cmd, arg); - if (ffserver_save_avoption_int("ab", (int64_t)lrintf(f), + if (ffserver_save_avoption_int("b", (int64_t)lrintf(f), AV_OPT_FLAG_AUDIO_PARAM, config) < 0) goto nomem; } else if (!av_strcasecmp(cmd, "AudioChannels")) { |