[FFmpeg-devel] size=0, but av_malloc(1)
Carl Eugen Hoyos
cehoyos at ag.or.at
Wed Mar 23 13:25:07 CET 2016
Chris Cunningham <chcunningham <at> chromium.org> writes:
> I'm seeing an interesting pattern [0][1] where we allocate 1 byte in places
> where I would expect no allocation to be necessary. Why is this being done?
>
> [0] https://github.com/FFmpeg/FFmpeg/blob/master/libavutil/mem.c#L136
Iirc, alloc(0) crashes (or crashed) on osx.
Carl Eugen
More information about the ffmpeg-devel
mailing list