This is from https://github.com/servo/servo/tree/master/components/fallible
with modificaion for mp4 demuxer.
