aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-10 12:12:55 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-23 10:14:26 +0100
commita40763f520cee8b928985dc3040362d761af570f (patch)
tree4c902220b4590baaf6e1680827fdabeff4d31618 /libavcodec
parent84bb18d4e706882cf6e662b5973fb7ad40457769 (diff)
downloadffmpeg-a40763f520cee8b928985dc3040362d761af570f.tar.gz
avcodec/mpeg4audio: Use proper logcontext for logging
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpeg4audio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mpeg4audio.c b/libavcodec/mpeg4audio.c
index 77cf2fb61c..2286303b54 100644
--- a/libavcodec/mpeg4audio.c
+++ b/libavcodec/mpeg4audio.c
@@ -30,7 +30,7 @@
* @param[in] c MPEG4AudioConfig structure to fill
* @return on success 0 is returned, otherwise a value < 0
*/
-static int parse_config_ALS(GetBitContext *gb, MPEG4AudioConfig *c)
+static int parse_config_ALS(GetBitContext *gb, MPEG4AudioConfig *c, void *logctx)
{
if (get_bits_left(gb) < 112)
return AVERROR_INVALIDDATA;
@@ -43,7 +43,7 @@ static int parse_config_ALS(GetBitContext *gb, MPEG4AudioConfig *c)
c->sample_rate = get_bits_long(gb, 32);
if (c->sample_rate <= 0) {
- av_log(NULL, AV_LOG_ERROR, "Invalid sample rate %d\n", c->sample_rate);
+ av_log(logctx, AV_LOG_ERROR, "Invalid sample rate %d\n", c->sample_rate);
return AVERROR_INVALIDDATA;
}
@@ -136,7 +136,7 @@ int ff_mpeg4audio_get_config_gb(MPEG4AudioConfig *c, GetBitContext *gb,
specific_config_bitindex = get_bits_count(gb);
- ret = parse_config_ALS(gb, c);
+ ret = parse_config_ALS(gb, c, logctx);
if (ret < 0)
return ret;
}