demux: libavi: use parent for boundary check on chunk read