avformat/wavenc: fix string length variable types