static int get_qcc(Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q,

                   uint8_t *properties)

{

    int compno;



    if (bytestream2_get_bytes_left(&s->g) < 1)

        return AVERROR_INVALIDDATA;



    compno              = bytestream2_get_byteu(&s->g);

    properties[compno] |= HAD_QCC;

    return get_qcx(s, n - 1, q + compno);

}

static int get_qcc(Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q,

                   uint8_t *properties)

{

    int compno;



    if (bytestream2_get_bytes_left(&s->g) < 1)

        return AVERROR_INVALIDDATA;



    compno              = bytestream2_get_byteu(&s->g);

    properties[compno] |= HAD_QCC;

    return get_qcx(s, n - 1, q + compno);

}

    compno              = bytestream2_get_byteu(&s->g);
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1, Jpeg2000QuantStyle *VAR_2,

                   uint8_t *VAR_3)

{

    int VAR_4;



    if (bytestream2_get_bytes_left(&VAR_0->g) < 1)

        return AVERROR_INVALIDDATA;



    VAR_4              = bytestream2_get_byteu(&VAR_0->g);

    VAR_3[VAR_4] |= HAD_QCC;

    return get_qcx(VAR_0, VAR_1 - 1, VAR_2 + VAR_4);

}

static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1, Jpeg2000QuantStyle *VAR_2,
uint8_t *VAR_3)
{ int VAR_4; if (bytestream2_get_bytes_left(&VAR_0->g) < 1)
return AVERROR_INVALIDDATA; VAR_4              = bytestream2_get_byteu(&VAR_0->g); VAR_3[VAR_4] |= HAD_QCC; return get_qcx(VAR_0, VAR_1 - 1, VAR_2 + VAR_4); }