[vlc-commits] directx_va: reduce the number of necessary decoding buffers

Steve Lhomme git at videolan.org
Mon Nov 28 01:36:41 CET 2016


vlc | branch: master | Steve Lhomme <slhomme at matroska.org> | Sat Nov 26 06:17:23 2016 +0100| [155dcb01e90d4238bccdfe04560ac1394e7af3a1] | committer: Jean-Baptiste Kempf

directx_va: reduce the number of necessary decoding buffers

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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)



More information about the vlc-commits mailing list