lcldec: ensure that the offset for av_memcpy_backptr is valid.