summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/kmscapture.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/kmscapture.cpp b/utils/kmscapture.cpp
index b4c3e88..43ef989 100644
--- a/utils/kmscapture.cpp
+++ b/utils/kmscapture.cpp
@@ -83,9 +83,9 @@ ExtFramebuffer* CameraPipeline::GetExtFrameBuffer(Card& card, uint32_t i, PixelF
const PixelFormatInfo& format_info = get_pixel_format_info(pixfmt);
ASSERT(format_info.num_planes == 1);
- uint32_t handles[4] { handle };
- uint32_t pitches[4] { m_in_width * (format_info.planes[0].bitspp / 8) };
- uint32_t offsets[4] { };
+ vector<uint32_t> handles { handle };
+ vector<uint32_t> pitches { m_in_width * (format_info.planes[0].bitspp / 8) };
+ vector<uint32_t> offsets { };
return new ExtFramebuffer(card, m_in_width, m_in_height, pixfmt,
handles, pitches, offsets);