[FFmpeg-devel] size=0, but av_malloc(1)

Chris Cunningham chcunningham at chromium.org
Wed Mar 23 07:43:50 CET 2016


Hey Group,

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
[1]
https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/oggparsevorbis.c#L286

Thanks,
Chris


More information about the ffmpeg-devel mailing list