vd_lavc: bump number of allocated surfaces for hwdec with HEVC

This commit is contained in:
wm4 2015-08-24 23:02:40 +02:00
parent 2172c22ee3
commit 1ec1b4186c
1 changed files with 4 additions and 1 deletions

View File

@ -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)