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

[ROCm/rocdecode commit: 730b80b600]
Bu işleme şunda yer alıyor:
Aryan Salmanpour
2023-11-10 18:24:21 -05:00
işlemeyi yapan: GitHub
ebeveyn 30c4df3af1
işleme 77481cf7e0
+4
Dosyayı Görüntüle
@@ -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]; 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; return rocdec_status;
} }