transposeMulti and transposeStereo don't handle when numSamples = 1 correctly.

if (remain == 0) goto end;

should be changed to

if (remain <= 0) goto end;

just to be safe.