[FFmpeg-devel] [PATCH] mp4toannexb modification / improvement
Tue Jun 8 22:13:09 CEST 2010
On 08/06/10 20:52, Michael Niedermayer wrote:
>>> while it is quite obscure but the + could overflow and lead to a
>>> successfull allocation of a too small buffer
>> Thanks for pointing this out... Would something like
>> uint64_t extra_size = (uint64_t)icodec->extradata_size +
>> if (extra_size> INT_MAX)
>> goto fail;
>> be enough to fix the problem?
Applied, then. Now, back to the mp4toannexb BSF patch... I attach an
improved version, which solves the extradata padding problem present in
the previous version. Is it ok, or should I fix something?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2885 bytes
Desc: not available
More information about the ffmpeg-devel