From 2a80680d95fd86242579ad4dcaa752f481945b4e Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 8 Jan 2016 17:19:04 +0100 Subject: Fix build on older libavcodec versions avcodec_profile_name() was added only a week ago or so. --- video/decode/vd_lavc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/decode') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index f16136b75a..d3c0de2c76 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -529,9 +529,11 @@ static enum AVPixelFormat get_format_hwdec(struct AVCodecContext *avctx, MP_VERBOSE(vd, " %s", av_get_pix_fmt_name(fmt[i])); MP_VERBOSE(vd, "\n"); +#if HAVE_AVCODEC_PROFILE_NAME 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); +#endif assert(ctx->hwdec); -- cgit v1.2.3