diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-05-07 00:33:01 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-05-07 12:33:50 +0200 |
commit | 2eab5a1f54cd08ea8b5a2b55a805718c51b26436 (patch) | |
tree | 9d36ba42cf0e1857f30b76a4d151c83e2a72e098 /libavcodec/aacsbr.h | |
parent | b1037d4ebe7b7f9548ce1ed24a2929aedbe9a27a (diff) | |
download | ffmpeg-2eab5a1f54cd08ea8b5a2b55a805718c51b26436.tar.gz |
avcodec/aac/aacdec: Fix linking errors with only one decoder enabled
This is achieved by using function pointers for AAC SBR functions.
This unfortunately necessitated to use void* in
ff_aac_sbr_apply(_fixed).
Fixes ticket #10999.
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/aacsbr.h')
-rw-r--r-- | libavcodec/aacsbr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aacsbr.h b/libavcodec/aacsbr.h index 656ef5258e..d4582d1100 100644 --- a/libavcodec/aacsbr.h +++ b/libavcodec/aacsbr.h @@ -90,9 +90,9 @@ int ff_aac_sbr_decode_extension_fixed(AACDecContext *ac, ChannelElement *che, /** Apply one SBR element to one AAC element. */ void ff_aac_sbr_apply(AACDecContext *ac, ChannelElement *che, - int id_aac, float *L, float *R); + int id_aac, void /* float */ *L, void /* float */ *R); void ff_aac_sbr_apply_fixed(AACDecContext *ac, ChannelElement *che, - int id_aac, int *L, int *R); + int id_aac, void /* int */ *L, void /* int */ *R); FF_VISIBILITY_POP_HIDDEN |