Close fds after importing the surVAAPI face to HIP memory (#55)

Tá an tiomantas seo le fáil i:
Aryan Salmanpour údaraithe agus GitHub tiomanta 2023-11-10 18:24:21 -05:00
1 tuismitheoir 3c7f29dab4
tiomantas 730b80b600
1 comhad athraithe
+4
+4
Féach ar an gComhad
@@ -116,6 +116,10 @@ rocDecStatus RocDecoder::mapVideoFrame(int pic_idx, void *dev_mem_ptr[3],
horizontal_pitch[2] = va_drm_prime_surface_desc.layers[2].pitch[0];
}
for (auto i = 0; i < va_drm_prime_surface_desc.num_objects; ++i) {
close(va_drm_prime_surface_desc.objects[i].fd);
}
return rocdec_status;
}