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