Fix raw encoding
This commit is contained in:
@@ -281,7 +281,7 @@ void raw_decoder::frame_completed(
|
||||
input[0],
|
||||
item->image,
|
||||
item->current_layout,
|
||||
stream_index ? 2 : 1,
|
||||
stream_index < 2 ? 2 : 1,
|
||||
regions.data());
|
||||
|
||||
vk::ImageMemoryBarrier barrier{
|
||||
|
||||
@@ -97,7 +97,7 @@ std::pair<bool, vk::Semaphore> wivrn::video_encoder_raw::present_image(vk::Image
|
||||
vk::ImageLayout::eTransferSrcOptimal,
|
||||
buffers[slot],
|
||||
std::span(regions.data(),
|
||||
stream_idx == 2 ? 2 : 1));
|
||||
stream_idx < 2 ? 2 : 1));
|
||||
return {false, nullptr};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user