obs-ffmpeg: Reserve jim-nvenc textures buffer space
Textures dynamic array buffer space was not reserved.
This commit is contained in:
parent
5a3e68a359
commit
fe776a83eb
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user