[FFmpeg-cvslog] avcodec/aacdec_template: Don't use intermediate void*

Andreas Rheinhardt git at videolan.org
Tue Feb 27 01:10:12 EET 2024


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Feb 25 21:37:38 2024 +0100| [c6cf253c98a7839d852f7f707979c8401a26459c] | committer: Andreas Rheinhardt

avcodec/aacdec_template: Don't use intermediate void*

Reviewed-by: Lynne <dev at lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c6cf253c98a7839d852f7f707979c8401a26459c
---

 libavcodec/aacdec_template.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/aacdec_template.c b/libavcodec/aacdec_template.c
index fa2a68535c..cfaa25873f 100644
--- a/libavcodec/aacdec_template.c
+++ b/libavcodec/aacdec_template.c
@@ -3032,7 +3032,7 @@ static int parse_adts_frame_header(AACContext *ac, GetBitContext *gb)
     return size;
 }
 
-static int aac_decode_er_frame(AVCodecContext *avctx, void *data,
+static int aac_decode_er_frame(AVCodecContext *avctx, AVFrame *frame,
                                int *got_frame_ptr, GetBitContext *gb)
 {
     AACContext *ac = avctx->priv_data;
@@ -3046,7 +3046,7 @@ static int aac_decode_er_frame(AVCodecContext *avctx, void *data,
     if (aot == AOT_ER_AAC_LD || aot == AOT_ER_AAC_ELD)
         samples >>= 1;
 
-    ac->frame = data;
+    ac->frame = frame;
 
     if ((err = frame_configure_elements(avctx)) < 0)
         return err;



More information about the ffmpeg-cvslog mailing list