Now the Demo program properly prints the header of the avi file.