diff options
author | wm4 <wm4@nowhere> | 2014-08-12 23:34:28 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-12 23:34:28 +0200 |
commit | be792c085a32cd9d35cd69d164258ccd59b526ac (patch) | |
tree | df4e8fccac11c0584ce7262eb4835b284adeac1b | |
parent | 5ed7bc6321119365dc1a5d330774e32ac6b6a54e (diff) | |
download | mpv-be792c085a32cd9d35cd69d164258ccd59b526ac.tar.bz2 mpv-be792c085a32cd9d35cd69d164258ccd59b526ac.tar.xz |
af_lavcac3enc: change default bitrate to 640
No reason to use less.
Since the name "default" is misleading now, replace it with "auto"
(still recognize the old name).
-rw-r--r-- | DOCS/man/af.rst | 4 | ||||
-rw-r--r-- | audio/filter/af_lavcac3enc.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/DOCS/man/af.rst b/DOCS/man/af.rst index 0512376ff2..2fede12935 100644 --- a/DOCS/man/af.rst +++ b/DOCS/man/af.rst @@ -77,10 +77,12 @@ Available filters are: ``bitrate=<rate>`` The bitrate use for the AC-3 stream. Set it to 384 to get 384 kbps. + The default is 640. Some receivers might not be able to handle this. + Valid values: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 448, 512, 576, 640. - The special value ``default`` selects a default bitrate based on the + The special value ``auto`` selects a default bitrate based on the input channel number: :1ch: 96 diff --git a/audio/filter/af_lavcac3enc.c b/audio/filter/af_lavcac3enc.c index 3b3b33b98a..de2e64396a 100644 --- a/audio/filter/af_lavcac3enc.c +++ b/audio/filter/af_lavcac3enc.c @@ -312,12 +312,13 @@ const struct af_info af_info_lavcac3enc = { .priv_size = sizeof(struct af_ac3enc_s), .priv_defaults = &(const struct af_ac3enc_s){ .cfg_add_iec61937_header = 1, + .cfg_bit_rate = 640, .cfg_min_channel_num = 5, }, .options = (const struct m_option[]) { OPT_FLAG("tospdif", cfg_add_iec61937_header, 0), OPT_CHOICE_OR_INT("bitrate", cfg_bit_rate, 0, 32, 640, - ({"default", 0})), + ({"auto", 0}, {"default", 0})), OPT_INTRANGE("minch", cfg_min_channel_num, 0, 2, 6), {0} }, |