Commit 33d1fb06 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/aacdec_fixed: Provide context to av_log()

Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 044be48f
...@@ -368,7 +368,7 @@ struct AACContext { ...@@ -368,7 +368,7 @@ struct AACContext {
INTFLOAT *in, IndividualChannelStream *ics); INTFLOAT *in, IndividualChannelStream *ics);
void (*update_ltp)(AACContext *ac, SingleChannelElement *sce); void (*update_ltp)(AACContext *ac, SingleChannelElement *sce);
void (*vector_pow43)(int *coefs, int len); void (*vector_pow43)(int *coefs, int len);
void (*subband_scale)(int *dst, int *src, int scale, int offset, int len); void (*subband_scale)(int *dst, int *src, int scale, int offset, int len, void *log_context);
}; };
......
...@@ -162,7 +162,7 @@ static void vector_pow43(int *coefs, int len) ...@@ -162,7 +162,7 @@ static void vector_pow43(int *coefs, int len)
} }
} }
static void subband_scale(int *dst, int *src, int scale, int offset, int len) static void subband_scale(int *dst, int *src, int scale, int offset, int len, void *log_context)
{ {
int ssign = scale < 0 ? -1 : 1; int ssign = scale < 0 ? -1 : 1;
int s = FFABS(scale); int s = FFABS(scale);
...@@ -189,7 +189,7 @@ static void subband_scale(int *dst, int *src, int scale, int offset, int len) ...@@ -189,7 +189,7 @@ static void subband_scale(int *dst, int *src, int scale, int offset, int len)
dst[i] = out * (unsigned)ssign; dst[i] = out * (unsigned)ssign;
} }
} else { } else {
av_log(NULL, AV_LOG_ERROR, "Overflow in subband_scale()\n"); av_log(log_context, AV_LOG_ERROR, "Overflow in subband_scale()\n");
} }
} }
......
...@@ -1927,7 +1927,7 @@ static int decode_spectrum_and_dequant(AACContext *ac, INTFLOAT coef[1024], ...@@ -1927,7 +1927,7 @@ static int decode_spectrum_and_dequant(AACContext *ac, INTFLOAT coef[1024],
if (cbt_m1 < NOISE_BT - 1) { if (cbt_m1 < NOISE_BT - 1) {
for (group = 0; group < (int)g_len; group++, cfo+=128) { for (group = 0; group < (int)g_len; group++, cfo+=128) {
ac->vector_pow43(cfo, off_len); ac->vector_pow43(cfo, off_len);
ac->subband_scale(cfo, cfo, sf[idx], 34, off_len); ac->subband_scale(cfo, cfo, sf[idx], 34, off_len, ac->avctx);
} }
} }
} }
...@@ -2158,7 +2158,7 @@ static void apply_intensity_stereo(AACContext *ac, ...@@ -2158,7 +2158,7 @@ static void apply_intensity_stereo(AACContext *ac,
coef0 + group * 128 + offsets[i], coef0 + group * 128 + offsets[i],
scale, scale,
23, 23,
offsets[i + 1] - offsets[i]); offsets[i + 1] - offsets[i] ,ac->avctx);
#else #else
ac->fdsp->vector_fmul_scalar(coef1 + group * 128 + offsets[i], ac->fdsp->vector_fmul_scalar(coef1 + group * 128 + offsets[i],
coef0 + group * 128 + offsets[i], coef0 + group * 128 + offsets[i],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment