[vlc-commits] directx_va: increase the amount of H264 buffers for in-flight pictures

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Oct 16 13:20:51 2019 +0200| [252977d4b7b29932a5230e2273473dd89e8cbdf2] | committer: Steve Lhomme

directx_va: increase the amount of H264 buffers for in-flight pictures

Some samples don't work properly with --vout=dummy otherwise

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

 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 83f44d6c2e..61ad7f7986 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -310,7 +310,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_H264:
-        surface_count += 16;
+        surface_count += 16 + 2;
         break;
     case AV_CODEC_ID_VP9:
         surface_count += 8 + 1;



More information about the vlc-commits mailing list