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

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

(cherry picked from commit e4214ebd)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6f853b5a
......@@ -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;
}
......
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