mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
obs-ffmpeg: Initialize mapped_res field in nv_texture_init
Otherwise it might never be initialized and nv_texture_free might unmap a non-existant resource.
This commit is contained in:
@@ -187,6 +187,7 @@ static bool nv_texture_init(struct nvenc_data *enc, struct nv_texture *nvtex)
|
||||
|
||||
nvtex->res = res.registeredResource;
|
||||
nvtex->tex = tex;
|
||||
nvtex->mapped_res = NULL;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user