[FFmpeg-devel] [PATCH v4] lavf/matroskadec: Normalize noncompliant A_QUICKTIME/V_QUICKTIME private data
Mats Peterson
matsp888 at yahoo.com
Sun Jan 10 03:30:14 CET 2016
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
More information about the ffmpeg-devel
mailing list