[Libav-user] How to cleanup libavcodec buffers when release is called during decode?

Carl Eugen Hoyos cehoyos at ag.or.at
Sat May 26 22:03:06 CEST 2012

Ratin <ratin3 at ...> writes:

> Hi,  for h.264 decode with hardware like Nvidia's VDPAU decoding, what
> should I do to cleanup the resources when avcodec_release callback is
> called?

> It seems that there are are some memory leaks when running
> decode for long period of time.

I am only guessing since you did not provide any valgrind output, 
but did you see the comment for vdpau_render_state.bitstream_buffers?
Also see MPlayer r29793

Carl Eugen

More information about the Libav-user mailing list