avi: fix wrong variable in seek code