[vlc-commits] directx_va: the max number of referenced frames for VP9 is 8

Steve Lhomme git at videolan.org
Wed Oct 16 13:27:27 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Oct 16 13:13:52 2019 +0200| [8730fd0e09e19737379561fa4be43ef2002a57ef] | committer: Steve Lhomme

directx_va: the max number of referenced frames for VP9 is 8

Plus one frame to decode

See https://www.webmproject.org/vp9/levels/

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8730fd0e09e19737379561fa4be43ef2002a57ef
---

 modules/codec/avcodec/directx_va.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index 0fd74b96a4..83f44d6c2e 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -313,7 +313,7 @@ const directx_va_mode_t *directx_va_Setup(vlc_va_t *va, const directx_sys_t *dx_
         surface_count += 16;
         break;
     case AV_CODEC_ID_VP9:
-        surface_count += 4;
+        surface_count += 8 + 1;
         break;
     default:
         surface_count += 2;



More information about the vlc-commits mailing list