[vlc-devel] [PATCH] DXVA2: fix HEVC buffer frame count

Steve Lhomme robUx4 at videolabs.io
Wed Apr 1 14:58:53 CEST 2015


some samples don't render correctly.

--
Not sure if the amount should be the same/more/less than H264
---
 modules/codec/avcodec/dxva2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 89eff5e..66da9cd 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -891,6 +891,7 @@ static int DxCreateVideoDecoder(vlc_va_t *va,
     sys->surface_height = (fmt->i_height + 15) & ~15;
     int surface_count;
     switch (codec_id) {
+    case AV_CODEC_ID_HEVC:
     case AV_CODEC_ID_H264:
         surface_count = 16 + sys->thread_count + 2;
         break;
-- 
2.3.2




More information about the vlc-devel mailing list