gifdec: refactor interleave end handling