diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-12-19 08:13:28 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-12-19 08:13:28 +0100 |
commit | cfa4eb4fba782f3f37a33be997b27a91a07053c9 (patch) | |
tree | c7e91439549ead26130a591821182d91ecfb1d1c | |
parent | ea8b730d8e67152107d7fcdd5590bbb51ec236b1 (diff) | |
download | ffmpeg-cfa4eb4fba782f3f37a33be997b27a91a07053c9.tar.gz |
vaapi_decode: use the correct logging context
-rw-r--r-- | libavcodec/vaapi_decode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c index 88bd889515..42f03ab141 100644 --- a/libavcodec/vaapi_decode.c +++ b/libavcodec/vaapi_decode.c @@ -306,7 +306,7 @@ static int vaapi_decode_make_config(AVCodecContext *avctx) vas = vaQueryConfigProfiles(ctx->hwctx->display, profile_list, &profile_count); if (vas != VA_STATUS_SUCCESS) { - av_log(ctx, AV_LOG_ERROR, "Failed to query profiles: " + av_log(avctx, AV_LOG_ERROR, "Failed to query profiles: " "%d (%s).\n", vas, vaErrorStr(vas)); err = AVERROR(ENOSYS); goto fail; @@ -338,7 +338,7 @@ static int vaapi_decode_make_config(AVCodecContext *avctx) av_freep(&profile_list); if (profile == VAProfileNone) { - av_log(ctx, AV_LOG_ERROR, "No support for codec %s " + av_log(avctx, AV_LOG_ERROR, "No support for codec %s " "profile %d.\n", codec_desc->name, avctx->profile); err = AVERROR(ENOSYS); goto fail; @@ -390,7 +390,7 @@ static int vaapi_decode_make_config(AVCodecContext *avctx) avctx->coded_height < constraints->min_height || avctx->coded_width > constraints->max_width || avctx->coded_height > constraints->max_height) { - av_log(ctx, AV_LOG_ERROR, "Hardware does not support image " + av_log(avctx, AV_LOG_ERROR, "Hardware does not support image " "size %dx%d (constraints: width %d-%d height %d-%d).\n", avctx->coded_width, avctx->coded_height, constraints->min_width, constraints->max_width, |