diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-27 16:57:34 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-05-05 13:26:34 +0300 |
commit | 39bb36d7231b4dd5eec8105903cd8e323b2c0474 (patch) | |
tree | c204ae3bd44d30f0f3bba0ed17aabd833720f9ca /libavcodec/ac3enc_float.c | |
parent | 32b20a274a8a628b5f255ca6641aef1c9c3b5713 (diff) |
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/ac3enc_float.c')
-rw-r--r-- | libavcodec/ac3enc_float.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ac3enc_float.c b/libavcodec/ac3enc_float.c index e5c2cbd42c..f9759bd2cf 100644 --- a/libavcodec/ac3enc_float.c +++ b/libavcodec/ac3enc_float.c @@ -136,6 +136,7 @@ const AVCodec ff_ac3_encoder = { .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"), .type = AVMEDIA_TYPE_AUDIO, .id = AV_CODEC_ID_AC3, + .capabilities = AV_CODEC_CAP_DR1, .priv_data_size = sizeof(AC3EncodeContext), .init = ff_ac3_float_encode_init, .encode2 = ff_ac3_float_encode_frame, |