vo_vdpau: Free buffers allocated by FFmpeg on uninit

This commit is contained in:
Uoti Urpala 2009-11-15 15:41:25 +02:00
parent 98ee8dd159
commit 7038c57a0c
1 changed files with 4 additions and 0 deletions

View File

@ -1540,6 +1540,10 @@ static void uninit(struct vo *vo)
#endif #endif
vo_x11_uninit(vo); 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); dlclose(vc->vdpau_lib_handle);
} }