avformat/wavenc: do not hardcode array size in memset and other functions

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