[FFmpeg-devel] [PATCH 1/3] Re-design the libopencv wrapper to make it more generic.

Stefano Sabatini stefano.sabatini-lala
Sat Oct 2 18:10:19 CEST 2010


On date Saturday 2010-10-02 17:53:18 +0200, Reimar D?ffinger encoded:
> On Sat, Oct 02, 2010 at 05:39:24PM +0200, Stefano Sabatini wrote:
> > +    av_free(ocv->priv);
> 
> Using av_freep helps ensuring correctness and allows valgrind leak
> detection to work better.

I added:
memset(ocv, 0, sizeof(*ocv));

that should be even better.
-- 
FFmpeg = Fancy & Foolish Majestic Peaceful Exxagerate God



More information about the ffmpeg-devel mailing list