I tested some m4a files and I'm able to detect the duration. Can you reply with the URL to the media file you're having problems with so I can test with that?
There's something with the files, but I don't know what it is yet. I will do some more tests in the morning.