lavf: Allocate arrays with av_realloc if they will be realloced later