ffmpeg: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>