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).
This commit is contained in:
Martin Pulec
2023-10-02 12:54:05 +02:00
parent 4f76857e5a
commit 242581585b

View File

@@ -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;
}