summaryrefslogtreecommitdiffstats
path: root/libavcodec/aacdec_fixed.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-12-31 21:28:31 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-01-01 21:11:47 +0100
commit33d1fb06279c1febc64c7426eccd034fc59640ad (patch)
tree8fc46fc855ab2f1e1ca2316f1de6e64b9832eb6d /libavcodec/aacdec_fixed.c
parent044be48faeadf33d3ec75cad9a9fac4fbd47fe7a (diff)
downloadffmpeg-streaming-33d1fb06279c1febc64c7426eccd034fc59640ad.zip
ffmpeg-streaming-33d1fb06279c1febc64c7426eccd034fc59640ad.tar.gz
avcodec/aacdec_fixed: Provide context to av_log()
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/aacdec_fixed.c')
-rw-r--r--libavcodec/aacdec_fixed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aacdec_fixed.c b/libavcodec/aacdec_fixed.c
index 1bdb93f..2c594c6 100644
--- a/libavcodec/aacdec_fixed.c
+++ b/libavcodec/aacdec_fixed.c
@@ -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 s = FFABS(scale);
@@ -189,7 +189,7 @@ static void subband_scale(int *dst, int *src, int scale, int offset, int len)
dst[i] = out * (unsigned)ssign;
}
} else {
- av_log(NULL, AV_LOG_ERROR, "Overflow in subband_scale()\n");
+ av_log(log_context, AV_LOG_ERROR, "Overflow in subband_scale()\n");
}
}
OpenPOWER on IntegriCloud