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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Mar 23 08:33:21 CET 2016


On Tue, Mar 22, 2016 at 11:43:50PM -0700, Chris Cunningham wrote:
> 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?

Well, what else would you do?
None of the alternatives really work any better, so that is the best
solution to the problem of sending empty metadata.
If you're wondering about why a specific alternative method doesn't
use, please say which and we can answer more specifically why it
won't work (well).


More information about the ffmpeg-devel mailing list