aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-04-16 16:37:56 +0000
committerPaul B Mahol <onemda@gmail.com>2013-04-16 20:46:34 +0000
commitb05d8d4cf4af8dab72983bfa48dfb639ed1f92f0 (patch)
tree36c2368b8bb54cc120d29892d7dd852c076ffb5c /libavcodec/utils.c
parentdc11acdf2d190ff4daef4d33ebd0c5cbe752b988 (diff)
downloadffmpeg-b05d8d4cf4af8dab72983bfa48dfb639ed1f92f0.tar.gz
lavc: avcodec_open2(): pass context to av_log()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 034b54a460..208bed1d91 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1130,13 +1130,13 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) {
const char *codec_string = av_codec_is_encoder(codec) ? "encoder" : "decoder";
AVCodec *codec2;
- av_log(NULL, AV_LOG_ERROR,
+ av_log(avctx, AV_LOG_ERROR,
"The %s '%s' is experimental but experimental codecs are not enabled, "
"add '-strict %d' if you want to use it.\n",
codec_string, codec->name, FF_COMPLIANCE_EXPERIMENTAL);
codec2 = av_codec_is_encoder(codec) ? avcodec_find_encoder(codec->id) : avcodec_find_decoder(codec->id);
if (!(codec2->capabilities & CODEC_CAP_EXPERIMENTAL))
- av_log(NULL, AV_LOG_ERROR, "Alternatively use the non experimental %s '%s'.\n",
+ av_log(avctx, AV_LOG_ERROR, "Alternatively use the non experimental %s '%s'.\n",
codec_string, codec2->name);
ret = AVERROR_EXPERIMENTAL;
goto free_and_end;