c avi playing code