For a corrupted stream, the value of nalu_len read from the extradata is not reliable. We need to perform additional checks