From 1ec1b4186c87ee88a0bc953c1ea0c5a2bc0f387e Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 24 Aug 2015 23:02:40 +0200 Subject: vd_lavc: bump number of allocated surfaces for hwdec with HEVC --- video/decode/vd_lavc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'video') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 62fd0cebb7..bc038255b7 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -218,7 +218,10 @@ bool hwdec_check_codec_support(const char *decoder, int hwdec_get_max_refs(struct lavc_ctx *ctx) { - return ctx->avctx->codec_id == AV_CODEC_ID_H264 ? 16 : 2; + if (ctx->avctx->codec_id == AV_CODEC_ID_H264 || + ctx->avctx->codec_id == AV_CODEC_ID_HEVC) + return 16; + return 2; } void hwdec_request_api(struct mp_hwdec_info *info, const char *api_name) -- cgit v1.2.3