~emersion/vaapi-decoder

443046e79c0f7d56e28ee1182425b3cec8f47280 — Simon Ser 9 months ago 69fb9c1
Stop manually closing DMA-BUF FDs

av_frame_free takes care of it already.
1 files changed, 0 insertions(+), 5 deletions(-)

M main.c
M main.c => main.c +0 -5
@@ 248,11 248,6 @@ int main(int argc, char *argv[]) {
	}
	fprintf(stderr, "DRM format: 0x%X\n", drm_format);

	for (int i = 0; i < drm_frame_desc->nb_objects; i++) {
		close(drm_frame_desc->objects[i].fd);
		drm_frame_desc->objects[i].fd = -1;
	}

	av_frame_free(&drm_frame);
	av_frame_free(&frame);