diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-04-07 16:39:59 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-04-11 12:53:26 +0200 |
commit | 6244ecf8ec6dabecea6ee7ee885e6ab827abf6cb (patch) | |
tree | e070dca4647a592206ec60ea62aa9e35432263ae /libavcodec/ac3enc.c | |
parent | fee093a5703e994169b04ffc99e6efa63d072b22 (diff) | |
download | ffmpeg-6244ecf8ec6dabecea6ee7ee885e6ab827abf6cb.tar.gz |
avcodec/ac3enc: Use common encode_frame function
This is in preparation for sharing even more stuff
common to the fixed and floating-point encoders.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r-- | libavcodec/ac3enc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index d26b52e9b9..22ec9e308e 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -1769,12 +1769,16 @@ static void ac3_output_frame(AC3EncodeContext *s, unsigned char *frame) output_frame_end(s); } -int ff_ac3_encode_frame_common_end(AVCodecContext *avctx, AVPacket *avpkt, - const AVFrame *frame, int *got_packet_ptr) +int ff_ac3_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, + const AVFrame *frame, int *got_packet_ptr) { AC3EncodeContext *const s = avctx->priv_data; int ret; + ret = s->encode_frame(s, frame); + if (ret < 0) + return ret; + ac3_apply_rematrixing(s); ac3_process_exponents(s); |