summaryrefslogtreecommitdiff
path: root/libavcodec/eac3enc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-27 15:57:34 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-05 12:26:34 +0200
commit39bb36d7231b4dd5eec8105903cd8e323b2c0474 (patch)
treec204ae3bd44d30f0f3bba0ed17aabd833720f9ca /libavcodec/eac3enc.c
parent32b20a274a8a628b5f255ca6641aef1c9c3b5713 (diff)
downloadffmpeg-39bb36d7231b4dd5eec8105903cd8e323b2c0474.tar.gz
avcodec/[e]ac3enc: Allow user-supplied buffers
The size of the output buffer is always known in advance and the code has no alignment requirement (it uses mostly the PutBits API), so allowing user-supplied buffers is trivial. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/eac3enc.c')
-rw-r--r--libavcodec/eac3enc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/eac3enc.c b/libavcodec/eac3enc.c
index 38ca31a219..96ef00ea4f 100644
--- a/libavcodec/eac3enc.c
+++ b/libavcodec/eac3enc.c
@@ -253,6 +253,7 @@ const AVCodec ff_eac3_encoder = {
.long_name = NULL_IF_CONFIG_SMALL("ATSC A/52 E-AC-3"),
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_EAC3,
+ .capabilities = AV_CODEC_CAP_DR1,
.priv_data_size = sizeof(AC3EncodeContext),
.init = ff_ac3_float_encode_init,
.encode2 = ff_ac3_float_encode_frame,