summaryrefslogtreecommitdiff
path: root/libavcodec/ac3enc_opts_template.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-02-22 21:45:06 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-02-29 14:36:00 -0500
commit4e99501f629f6baebac0414d92d841b64ead30fe (patch)
tree968a7b6458290fd144e072aea67b5f0cb10df2e9 /libavcodec/ac3enc_opts_template.c
parent6aeea1dfb2f21de959701ee7dfaab59b4634e570 (diff)
(e)ac3enc: select a default bit rate based on the channel layout
Diffstat (limited to 'libavcodec/ac3enc_opts_template.c')
-rw-r--r--libavcodec/ac3enc_opts_template.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/ac3enc_opts_template.c b/libavcodec/ac3enc_opts_template.c
index a5f848e200..fa8984476e 100644
--- a/libavcodec/ac3enc_opts_template.c
+++ b/libavcodec/ac3enc_opts_template.c
@@ -20,6 +20,7 @@
*/
#include "libavutil/opt.h"
+#include "internal.h"
#include "ac3.h"
#if AC3ENC_TYPE == AC3ENC_TYPE_AC3_FIXED
@@ -78,3 +79,8 @@ static const AVOption eac3_options[] = {
{"auto", "Selected by the Encoder", 0, AV_OPT_TYPE_CONST, {.dbl = AC3ENC_OPT_AUTO }, INT_MIN, INT_MAX, AC3ENC_PARAM, "cpl_start_band"},
{NULL}
};
+
+static const AVCodecDefault ac3_defaults[] = {
+ { "b", "0" },
+ { NULL }
+};