From 7038c57a0c9a037f7f697dbecc656fc2b81f4651 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sun, 15 Nov 2009 15:41:25 +0200 Subject: [PATCH] vo_vdpau: Free buffers allocated by FFmpeg on uninit --- libvo/vo_vdpau.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index a228b00787..4da410b028 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -1540,6 +1540,10 @@ static void uninit(struct vo *vo) #endif vo_x11_uninit(vo); + // Free bitstream buffers allocated by FFmpeg + for (int i = 0; i < MAX_VIDEO_SURFACES; i++) + av_freep(&vc->surface_render[i].bitstream_buffers); + dlclose(vc->vdpau_lib_handle); }