avcodec/dirac_parser: Add basic validity checks for next_pu_offset and prev_pu_offset