On 3/9/2018 12:18 PM, Derek Buitenhuis wrote: > On 3/8/2018 4:02 PM, James Almer wrote: >> Signed-off-by: James Almer <jamr...@gmail.com> >> --- >> libavcodec/extract_extradata_bsf.c | 4 ++++ >> 1 file changed, 4 insertions(+) > > Can't most (or all) of these be fixed by using av_mallocz?
Yes, but it's slower, and the buffer is guaranteed to be written to with actual data after being allocated. This is a filter that may run once per processed packet, so the less overhead the better. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel