tiff: Use av_mallocz_array