QuickTime: fix header/footer parsing bug (rebased onto develop)



This is the same as gh-1086 but rebased onto develop.

----

This should fix https://trac.openmicroscopy.org.uk/ome/ticket/12218.  QTJava is not required to read this file; opening in ImageJ or importing into OMERO should match the results of playing the movie in mplayer (other movie players may or may not read this file; Windows Media Player in particular doesn't seem to work).