aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aacsbr_template.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-07 00:33:01 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-07 12:33:50 +0200
commit2eab5a1f54cd08ea8b5a2b55a805718c51b26436 (patch)
tree9d36ba42cf0e1857f30b76a4d151c83e2a72e098 /libavcodec/aacsbr_template.c
parentb1037d4ebe7b7f9548ce1ed24a2929aedbe9a27a (diff)
downloadffmpeg-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_template.c')
-rw-r--r--libavcodec/aacsbr_template.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/aacsbr_template.c b/libavcodec/aacsbr_template.c
index a6e3bc54bd..86f4d8c26e 100644
--- a/libavcodec/aacsbr_template.c
+++ b/libavcodec/aacsbr_template.c
@@ -1469,8 +1469,9 @@ static void sbr_env_estimate(AAC_FLOAT (*e_curr)[48], INTFLOAT X_high[64][40][2]
}
void AAC_RENAME(ff_aac_sbr_apply)(AACDecContext *ac, ChannelElement *che,
- int id_aac, INTFLOAT* L, INTFLOAT* R)
+ int id_aac, void *L_, void *R_)
{
+ INTFLOAT *L = L_, *R = R_;
SpectralBandReplication *sbr = get_sbr(che);
int downsampled = ac->oc[1].m4ac.ext_sample_rate < sbr->sample_rate;
int ch;