avidec: infer absolute vs relative index from first packet