aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3enc.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-03 05:32:18 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-07 10:30:14 +0100
commit134193a2ff1885880d1d597d8c1316d4b47e3af6 (patch)
tree9b6ffb67cdd1e2edfa0f07fca98ce43802309084 /libavcodec/ac3enc.h
parentbdd55e1dd835f71bb78244d6146ec45d6158b2ec (diff)
downloadffmpeg-134193a2ff1885880d1d597d8c1316d4b47e3af6.tar.gz
avcodec/ac3enc: Share options and defaults
Both AC-3 encoder share the same options, yet they are nevertheless duplicated in the binary; and the options applying to the EAC-3 encoder are a proper subset of the options for the AC-3 encoders, so that it can use the same options as the former by putting the options specific to AC-3 at the front. This commit implements this. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/ac3enc.h')
-rw-r--r--libavcodec/ac3enc.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/libavcodec/ac3enc.h b/libavcodec/ac3enc.h
index ba62891371..c064ba4d63 100644
--- a/libavcodec/ac3enc.h
+++ b/libavcodec/ac3enc.h
@@ -43,13 +43,6 @@
#define AC3ENC_FLOAT 0
#endif
-#define OFFSET(param) offsetof(AC3EncodeContext, options.param)
-#define AC3ENC_PARAM (AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM)
-
-#define AC3ENC_TYPE_AC3_FIXED 0
-#define AC3ENC_TYPE_AC3 1
-#define AC3ENC_TYPE_EAC3 2
-
#if AC3ENC_FLOAT
#include "libavutil/float_dsp.h"
#define AC3_NAME(x) ff_ac3_float_ ## x
@@ -273,6 +266,8 @@ typedef struct AC3EncodeContext {
extern const uint64_t ff_ac3_channel_layouts[19];
+extern const AVOption ff_ac3_enc_options[];
+extern const AVCodecDefault ff_ac3_enc_defaults[];
int ff_ac3_encode_init(AVCodecContext *avctx);
int ff_ac3_float_encode_init(AVCodecContext *avctx);