mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-18 21:38:29 -04:00
obs-ffmpeg: Reserve jim-nvenc textures buffer space
Textures dynamic array buffer space was not reserved.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user