aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3enc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-04-07 20:04:20 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-04-11 12:53:26 +0200
commit28ffc39808f6e203291430515b22b7b6d1755329 (patch)
treea4d12e09ca2fca1ae0d73c112378dac8373ea077 /libavcodec/ac3enc.c
parent2281ab5c24448782886513cc07cff6aaa6b85bfc (diff)
downloadffmpeg-28ffc39808f6e203291430515b22b7b6d1755329.tar.gz
avcodec/ac3enc: Move EAC-3 specific initialization to eac3enc.c
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r--libavcodec/ac3enc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index 564c4d96f6..b74ea6b2e7 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -2555,8 +2555,6 @@ av_cold int ff_ac3_encode_init(AVCodecContext *avctx)
s->avctx = avctx;
- s->eac3 = avctx->codec_id == AV_CODEC_ID_EAC3;
-
ret = validate_options(s);
if (ret)
return ret;
@@ -2579,11 +2577,7 @@ av_cold int ff_ac3_encode_init(AVCodecContext *avctx)
s->crc_inv[1] = pow_poly((CRC16_POLY >> 1), (8 * frame_size_58) - 16, CRC16_POLY);
}
- if (CONFIG_EAC3_ENCODER && s->eac3) {
- static AVOnce init_static_once_eac3 = AV_ONCE_INIT;
- ff_thread_once(&init_static_once_eac3, ff_eac3_exponent_init);
- s->output_frame_header = ff_eac3_output_frame_header;
- } else
+ if (!s->output_frame_header)
s->output_frame_header = ac3_output_frame_header;
set_bandwidth(s);