avcodec/buffersrc: use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfilter/buffer: Use av_malloc_array()

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