summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2024-03-14 11:40:03 +0800
committerZhao Zhili <zhilizhao@tencent.com>2024-03-22 20:26:53 +0800
commitc775163a8c032e20f25b79e63920f67e1b5b540d (patch)
treeedf45a5c1764ee645d33b9f9f4c5571a2cbfae32
parentee736ff80ed967999645147c974cd1941d5e6a21 (diff)
avcodec/decode: log hwaccel name
Many users mistakenly think that hwaccel is an instance of a decoder, and cannot find the corresponding decoder name in the logs. Log hwaccel name so user know hwaccel has taken effect. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
-rw-r--r--libavcodec/decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 4168cf6f2d..34bcb7cc64 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -1326,8 +1326,8 @@ int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt)
goto try_again;
}
if (hw_config->hwaccel) {
- av_log(avctx, AV_LOG_DEBUG, "Format %s requires hwaccel "
- "initialisation.\n", desc->name);
+ av_log(avctx, AV_LOG_DEBUG, "Format %s requires hwaccel %s "
+ "initialisation.\n", desc->name, hw_config->hwaccel->p.name);
err = hwaccel_init(avctx, hw_config->hwaccel);
if (err < 0)
goto try_again;