From 242581585bde60d871ae01a7ea75fc239ee54926 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 2 Oct 2023 12:54:05 +0200 Subject: [PATCH] lavd probe: get properties from sw_pix_fmt Currently, if probing, hw acceleration is skipped, but this will change so this is done in preparation to this. Also print in verbose mode now (it is now more useful to debug). --- src/video_decompress/libavcodec.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/video_decompress/libavcodec.c b/src/video_decompress/libavcodec.c index fdc57c682..1af3a987a 100644 --- a/src/video_decompress/libavcodec.c +++ b/src/video_decompress/libavcodec.c @@ -1069,8 +1069,11 @@ static decompress_status libavcodec_decompress(void *state, unsigned char *dst, check_duration(s, (t2 - t0) / NS_IN_SEC_DBL, (t2 - t1) / NS_IN_MS_DBL); if (s->out_codec == VIDEO_CODEC_NONE) { - log_msg(LOG_LEVEL_DEBUG, MOD_NAME "Selected output pixel format: %s\n", av_get_pix_fmt_name(s->codec_ctx->pix_fmt)); - *internal_props = av_pixfmt_get_desc(s->codec_ctx->pix_fmt); + log_msg(LOG_LEVEL_VERBOSE, + MOD_NAME "Probed output pixel format: %s (%s)\n", + av_get_pix_fmt_name(s->codec_ctx->pix_fmt), + av_get_pix_fmt_name(s->codec_ctx->sw_pix_fmt)); + *internal_props = av_pixfmt_get_desc(s->codec_ctx->sw_pix_fmt); return DECODER_GOT_CODEC; }