[vlc-commits] DXVA2: fix HEVC buffer frame count
Steve Lhomme
git at videolan.org
Wed Apr 1 16:10:31 CEST 2015
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Apr 1 11:58:53 2015 +0000| [8f86a6e2ecb5bcc3cb973c1a529914c5d81a0ded] | committer: Jean-Baptiste Kempf
DXVA2: fix HEVC buffer frame count
some samples don't render correctly.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8f86a6e2ecb5bcc3cb973c1a529914c5d81a0ded
---
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 f9e7c40..bdcc6bf 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -884,6 +884,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;
More information about the vlc-commits
mailing list