summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-08 09:13:56 +0100
committerwm4 <wm4@nowhere>2016-01-08 09:22:25 +0100
commit12b4f177ec3093588e96482608189b1c73b95d52 (patch)
tree20c15875e10f62f35f826cae4a8a52264567cf67 /video/decode/vd_lavc.c
parent6a73fcc9ed8578b410f0555b9346b3034058a6c7 (diff)
downloadmpv-12b4f177ec3093588e96482608189b1c73b95d52.tar.bz2
mpv-12b4f177ec3093588e96482608189b1c73b95d52.tar.xz
vd_lavc: log codec profile when attempting hardware decoding
Should be useful.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 89fa21c4e1..f16136b75a 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -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;