avutil/lzo: add asserts to be double sure against overflows