vd_lavc: log codec profile when attempting hardware decoding

Should be useful.
This commit is contained in:
wm4 2016-01-08 09:13:56 +01:00
parent 6a73fcc9ed
commit 12b4f177ec
1 changed files with 4 additions and 0 deletions

View File

@ -529,6 +529,10 @@ static enum AVPixelFormat get_format_hwdec(struct AVCodecContext *avctx,
MP_VERBOSE(vd, " %s", av_get_pix_fmt_name(fmt[i]));
MP_VERBOSE(vd, "\n");
const char *profile = avcodec_profile_name(avctx->codec_id, avctx->profile);
MP_VERBOSE(vd, "Codec profile: %s (0x%x)\n", profile ? profile : "unknown",
avctx->profile);
assert(ctx->hwdec);
ctx->hwdec_request_reinit |= ctx->hwdec_failed;