[Ffmpeg-devel] [PATCH] av_realloc, unneccesary memcpy and possibly leaks after r5992

Michael Niedermayer michaelni
Wed Sep 13 21:22:11 CEST 2006


Hi

On Wed, Sep 13, 2006 at 04:46:17PM +0200, Luca Barbato wrote:
> Michael Niedermayer wrote:
> 
> > ill try to fix it, dont hesitate to review my change on svnlog and point
> > me to any further cases i missed, seems this isnt as easy as it looked
> 
> what happened to it?

i tried and realized its much harder to do then it looks at first
one problem is that you dont know how large the old allocated block is


> 
> now it is needed in vp56 ...

id say change vp56 to av_malloc() + av_free()

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-devel mailing list