Update avi frame rate fixing code