[vlc-commits] directx_va: add 2 more frames to the decoder pool
Steve Lhomme
git at videolan.org
Wed Jan 17 14:15:44 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jan 17 14:10:15 2018 +0100| [c6cc49c5693aea9a36c2525acb12077863994e00] | committer: Steve Lhomme
directx_va: add 2 more frames to the decoder pool
It seems that the VP9 decoder requires more than 2 frames for buffering.
Fixes #19196
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6cc49c5693aea9a36c2525acb12077863994e00
---
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