[Ffmpeg-devel] [PATCH] Replace av_malloc+memset with av_mallocz

Daniel Serpell daniel_serpell
Thu Sep 7 17:09:12 CEST 2006


Hi!

El Thu, Sep 07, 2006 at 10:55:56AM -0400, Rich Felker escribio:
> On Thu, Sep 07, 2006 at 10:03:43AM -0400, Daniel Serpell wrote:
> > 
> > It can be done easily now using custom av_malloc / av_free functions.
> 
> Not it can't because av_malloc does not take a context as an argument.
> (I'm not saying it should, just that it can't do what I said.)

Yes, you will need to set the malloc/free context (of your aplication)
before calling any avcodec API, using some sort of global variable.

I agree, not very good, but could work.

    Daniel.





More information about the ffmpeg-devel mailing list