[vlc-commits] vdpau: use reference frames count from libavcodec
Rémi Denis-Courmont
git at videolan.org
Sat Oct 4 11:43:53 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 4 12:42:33 2014 +0300| [41bb54f2ae801b8ef16488eeca5597e032025069] | committer: Rémi Denis-Courmont
vdpau: use reference frames count from libavcodec
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=41bb54f2ae801b8ef16488eeca5597e032025069
---
modules/hw/vdpau/avcodec.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c
index d52043f..f741f82 100644
--- a/modules/hw/vdpau/avcodec.c
+++ b/modules/hw/vdpau/avcodec.c
@@ -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",
More information about the vlc-commits
mailing list