[vlc-commits] directx_va: add 2 more frames to the VP9 decoder pool

Steve Lhomme git at videolan.org
Wed Jan 17 14:26:36 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jan 17 14:10:15 2018 +0100| [e4214ebd7bbaaa8460c8a5b1bc8c3d7ef27e0454] | committer: Steve Lhomme

directx_va: add 2 more frames to the VP9 decoder pool

It seems that the VP9 decoder requires 2 more frames for buffering. With some
samples it doesn't decode/seek with avcodec-threads set to 1. It works after
adding these 2 buffers.

Fixes #19196

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

 modules/codec/avcodec/directx_va.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index 9b4f20cf72..f7ee9f75c8 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -312,6 +312,9 @@ int directx_va_Setup(vlc_va_t *va, directx_sys_t *dx_sys, const AVCodecContext *
     case AV_CODEC_ID_H264:
         surface_count += 16;
         break;
+    case AV_CODEC_ID_VP9:
+        surface_count += 4;
+        break;
     default:
         surface_count += 2;
     }



More information about the vlc-commits mailing list