diff options
Diffstat (limited to 'libvo/vo_vdpau.c')
-rw-r--r-- | libvo/vo_vdpau.c | 4 |
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); } |