vk-video-ffi: H.265, AV1 and VP9 decode sessions use the driver's DPB slot and active reference maxima, as ffmpeg does
Browse files at this commit9531d9e1fb18658abb0e4284111f7863cbdc5dc3Parent: 08bc65c3 changed files +6 -6
- shims/vk-video-ffi/src/av1_decode.rs +2 -2
- shims/vk-video-ffi/src/h265_decode.rs +2 -2
- shims/vk-video-ffi/src/vp9_decode.rs +2 -2
shims/vk-video-ffi/src/av1_decode.rsmodified+2 -2
| @@ -558,8 +558,8 @@ impl Av1DecodeSession { | ||
| 558 | 558 | &profile.info, |
| 559 | 559 | &caps.std_header_version, |
| 560 | 560 | max_extent, |
| 561 | - cfg.max_dpb_slots, | |
| 562 | - max_active, | |
| 561 | + caps.max_dpb_slots, | |
| 562 | + caps.max_active_refs, | |
| 563 | 563 | )?; |
| 564 | 564 | let dec = Decoder::new( |
| 565 | 565 | vs, |
shims/vk-video-ffi/src/h265_decode.rsmodified+2 -2
| @@ -404,8 +404,8 @@ impl H265DecodeSession { | ||
| 404 | 404 | &profile.info, |
| 405 | 405 | &caps.std_header_version, |
| 406 | 406 | max_extent, |
| 407 | - cfg.max_dpb_slots, | |
| 408 | - max_active, | |
| 407 | + caps.max_dpb_slots, | |
| 408 | + caps.max_active_refs, | |
| 409 | 409 | )?; |
| 410 | 410 | let dec = Decoder::new( |
| 411 | 411 | vs, |
shims/vk-video-ffi/src/vp9_decode.rsmodified+2 -2
| @@ -263,8 +263,8 @@ impl Vp9DecodeSession { | ||
| 263 | 263 | &profile.info, |
| 264 | 264 | &caps.std_header_version, |
| 265 | 265 | max_extent, |
| 266 | - cfg.max_dpb_slots, | |
| 267 | - max_active, | |
| 266 | + caps.max_dpb_slots, | |
| 267 | + caps.max_active_refs, | |
| 268 | 268 | )?; |
| 269 | 269 | let dec = Decoder::new( |
| 270 | 270 | vs, |