libobs: Fix buffer overrun in video_frame_init

This commit is contained in:
derrod
2024-05-25 17:12:34 -07:00
committed by Lain
parent 175b0cbc83
commit 79632f96dd
+1 -1
View File
@@ -196,7 +196,7 @@ void video_frame_init(struct video_frame *frame, enum video_format format,
size_t size = 0;
uint32_t linesizes[MAX_AV_PLANES];
uint32_t heights[MAX_AV_PLANES];
size_t offsets[MAX_AV_PLANES - 1];
size_t offsets[MAX_AV_PLANES];
int alignment = base_get_alignment();
if (!frame)