Bug fixes for the ReadFFMPEG