Fixed file buffer loading bugs and video decoding.