[FFmpeg-devel] [PATCH 2/3] examples/filtering_audio: Fix memory leak

Nicolas George nicolas.george at normalesup.org
Thu Apr 18 15:11:15 CEST 2013


L'octidi 28 germinal, an CCXXI, pkoshevoy at gmail.com a écrit :
> From: Pavel Koshevoy <pkoshevoy at gmail.com>
> 
> Calling av_opt_set_int(dec_ctx, "refcounted_frames", 1, 0)
> introduced a memory leak which was reported by valgrind.
> I don't know if my fix is correct, but it fixes the leak.

> -    av_opt_set_int(dec_ctx, "refcounted_frames", 1, 0);

Enabling refcounted frames is the preferred new API. The examples should use
them. Correctly, hopefully, but disabling them is not an appropriate fix.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130418/b5c7f2ce/attachment.asc>


More information about the ffmpeg-devel mailing list