Commit 8f86a6e2 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

DXVA2: fix HEVC buffer frame count

some samples don't render correctly.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent c7e2d546
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment