Don't overestimate the size of format arrays

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
[test] Add test for AC1D format

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>