Commit 41bb54f2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vdpau: use reference frames count from libavcodec

parent 8c324826
......@@ -132,18 +132,8 @@ static int Setup(vlc_va_t *va, AVCodecContext *avctx, vlc_fourcc_t *chromap)
return VLC_EGENERIC;
}
unsigned surfaces = 2;
switch (profile)
{
case VDP_DECODER_PROFILE_H264_BASELINE:
case VDP_DECODER_PROFILE_H264_MAIN:
case VDP_DECODER_PROFILE_H264_HIGH:
surfaces = 16;
break;
}
err = vdp_decoder_create(sys->vdp, sys->device, profile, sys->width,
sys->height, surfaces, &hwctx->decoder);
sys->height, avctx->refs, &hwctx->decoder);
if (err != VDP_STATUS_OK)
{
msg_Err(va, "%s creation failure: %s", "decoder",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment