forge
Explore
Log in

Don't you dare go Hollow

vk-video-ffi H.264 decode: create the session with the driver's DPB slot and active reference maxima

Browse files at this commit

08bc65c142498a4b8d046032b66b3d42a3abf65dAhmet Kaan GümüşParent: 8af23f0
The session was sized with the stream's DPB slot count and active reference count (5/5 for these streams). The driver sizes session memory from those numbers, and a session that is too small corrupts decoding after an earlier session on the same device. ffmpeg creates sessions with the driver caps. DPB image count stays stream-sized.
shims/vk-video-ffi/src/h264_decode.rsmodified+2 -2
@@ -268,8 +268,8 @@ impl H264DecodeSession {
268 &profile.info,268 &profile.info,
269 &caps.std_header_version,269 &caps.std_header_version,
270 max_extent,270 max_extent,
271- cfg.max_dpb_slots,271+ caps.max_dpb_slots,
272- max_active,272+ caps.max_active_refs,
273 )?;273 )?;
274 let dec = Decoder::new(274 let dec = Decoder::new(
275 vs,275 vs,