summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-15 15:41:25 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-15 17:05:29 +0200
commit7038c57a0c9a037f7f697dbecc656fc2b81f4651 (patch)
tree26a52716f73a4f494280b31620c975918748af39 /libvo
parent98ee8dd15976501157c894ec385c4c551c6614ad (diff)
downloadmpv-7038c57a0c9a037f7f697dbecc656fc2b81f4651.tar.bz2
mpv-7038c57a0c9a037f7f697dbecc656fc2b81f4651.tar.xz
vo_vdpau: Free buffers allocated by FFmpeg on uninit
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vdpau.c4
1 files changed, 4 insertions, 0 deletions
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);
}