obs-ffmpeg: Reserve jim-nvenc textures buffer space

Textures dynamic array buffer space was not reserved.
This commit is contained in:
Torge Matthies 2022-02-23 04:16:04 +01:00 committed by Jim
parent 5a3e68a359
commit fe776a83eb

View File

@ -938,7 +938,7 @@ static bool init_bitstreams(struct nvenc_data *enc)
static bool init_textures(struct nvenc_data *enc)
{
da_reserve(enc->bitstreams, enc->buf_count);
da_reserve(enc->textures, enc->buf_count);
for (int i = 0; i < enc->buf_count; i++) {
struct nv_texture texture;
if (!nv_texture_init(enc, &texture)) {