[FFmpeg-devel] [PATCH v5] lavf/matroskadec: Normalize noncompliant A_QUICKTIME/V_QUICKTIME private data

Mats Peterson matsp888 at yahoo.com
Sun Jan 10 04:04:47 CET 2016


How about this one, Michael? Rather than using the obviously dangerous 
av_realloc() it uses av_malloc() to allocate new memory for the private 
data, then copies the private data to it, frees the pointer to the 
original private data, and finally sets track->codec->priv_data to the 
newly allocated memory.

Mats

-- 
Mats Peterson
http://matsp888.no-ip.org/~mats/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavf-matroskadec-Normalize-A_QUICKTIME-V_QUICKTIME-p.patch
Type: text/x-patch
Size: 4418 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160110/c5a695e7/attachment.bin>


More information about the ffmpeg-devel mailing list