[vlc-devel] [PATCH 1/2] directx_va: reduce the number of necessary decoding buffers

Steve Lhomme robux4 at videolabs.io
Sat Nov 26 06:17:23 CET 2016


From: Steve Lhomme <slhomme at matroska.org>

---
 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 2f886fc..6b07d2f 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -273,7 +273,7 @@ char *directx_va_GetDecoderName(const GUID *guid)
 int directx_va_Setup(vlc_va_t *va, directx_sys_t *dx_sys, AVCodecContext *avctx)
 {
     int surface_alignment = 16;
-    int surface_count = 4;
+    int surface_count = 2;
 
     if (dx_sys->width == avctx->coded_width && dx_sys->height == avctx->coded_height
      && dx_sys->decoder != NULL)
-- 
2.10.1



More information about the vlc-devel mailing list