Better handling of errors for MP4 files