avfilter/formats: use av_realloc_array in ADD_FORMAT()