avidec: simplify avi_read_idx1()