sonic: use av_calloc()