aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-04-14 18:47:57 +0200
committerPaul B Mahol <onemda@gmail.com>2016-04-14 18:47:57 +0200
commitc9fb81ff411ad1aa0f34dae553d05ff7c4644500 (patch)
tree13123dbb2b140da511cd067ba077f217512e0d87 /libavcodec
parent323b8c95e41094b90ed2a9bdd9a06d22d2f74856 (diff)
downloadffmpeg-c9fb81ff411ad1aa0f34dae553d05ff7c4644500.tar.gz
avcodec/atrac3: pass AVCodecContext to av_log if available
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/atrac3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 4bdb63f98b..256990b311 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -762,7 +762,7 @@ static int atrac3_decode_frame(AVCodecContext *avctx, void *data,
ret = decode_frame(avctx, databuf, (float **)frame->extended_data);
if (ret) {
- av_log(NULL, AV_LOG_ERROR, "Frame decoding error!\n");
+ av_log(avctx, AV_LOG_ERROR, "Frame decoding error!\n");
return ret;
}
@@ -843,7 +843,7 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx)
q->scrambled_stream = 1;
} else {
- av_log(NULL, AV_LOG_ERROR, "Unknown extradata size %d.\n",
+ av_log(avctx, AV_LOG_ERROR, "Unknown extradata size %d.\n",
avctx->extradata_size);
return AVERROR(EINVAL);
}