summaryrefslogtreecommitdiff
path: root/libavcodec/ac3enc_fixed.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-06-07 16:13:33 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-07-08 20:10:01 +0200
commitbc368575a935ace7e898dc0149c672035b07a1c0 (patch)
tree7340fb75c800f7e7852c8b197db28a92c606d01c /libavcodec/ac3enc_fixed.c
parent9a1a82d21c8a6145b9a9428eb6dabd1d28fcb626 (diff)
avcodec/ac3enc: Deduplicate AVClasses
The child_class_next API relied on different AVCodecs to use different AVClasses; yet this API has been replaced by child_class_iterate. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/ac3enc_fixed.c')
-rw-r--r--libavcodec/ac3enc_fixed.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libavcodec/ac3enc_fixed.c b/libavcodec/ac3enc_fixed.c
index 58decc594e..c7632d78e1 100644
--- a/libavcodec/ac3enc_fixed.c
+++ b/libavcodec/ac3enc_fixed.c
@@ -35,13 +35,6 @@
#include "eac3enc.h"
#include "kbdwin.h"
-static const AVClass ac3enc_class = {
- .class_name = "Fixed-Point AC-3 Encoder",
- .item_name = av_default_item_name,
- .option = ff_ac3_enc_options,
- .version = LIBAVUTIL_VERSION_INT,
-};
-
static void sum_square_butterfly(AC3EncodeContext *s, int64_t sum[4],
const int32_t *coef0, const int32_t *coef1,
int len)
@@ -139,7 +132,7 @@ const AVCodec ff_ac3_fixed_encoder = {
.close = ff_ac3_encode_close,
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S32P,
AV_SAMPLE_FMT_NONE },
- .priv_class = &ac3enc_class,
+ .priv_class = &ff_ac3enc_class,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
.supported_samplerates = ff_ac3_sample_rate_tab,
.channel_layouts = ff_ac3_channel_layouts,