Jiggling bits until avi writer unbreaks.