Sorenson Squeeze 4.1 Metadata Problem

I’m currently trying to find the width and height of some flv’s encoded in Squeeze v4.1

They all suffer from this metadata problem. basicly this:

netSt.onMetaData = function(metadata){
trace(metadata.width+", "+metadata.height);
}

prints “480, 480”, when the actual height is 320. the result is all my video is stretched into a square.

I noticed that riva flv player plays the files at the correct width and height even with the dodgy metadata, does anybody know how they do it?