danielgtaylor/qtrotate — pull request #1 by pugnusferreus (2013-02-03 23:03:00+00:00)
Title: infinite loop occurs when trying to rotate video on Windows

- added datastream.flush. On windows, if you don't do that, python will add null char to your string. This will not happen on Unix based python because datastream.read will "commit" the string into the file. However, on windows, you're required to use flush or close

- rather than assuming that the tkhd value will always be 36 char, use char.__len__() instead