On 01/10/2016 03:24 AM, Mats Peterson wrote:
I suppose that ebml_read_binary() in matroskadec.c is the function used
to read the private data, and it allocates memory using
av_fast_padded_malloc() for this. Is it safe to reallocate a pointer
from this function then? So far I've had no problems, but of course I
want to be absolutely sure.
Probably not, since it eventually uses av_malloc() as well... sigh.
Perhaps the best way is to use av_malloc() to allocate new memory, then
copy the old private data to it, and finally free the pointer to the old
memory?
Mats
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel