static int get_qcc(J2kDecoderContext *s, int n, J2kQuantStyle *q, uint8_t *properties)

{

    int compno;



    if (s->buf_end - s->buf < 1)

        return AVERROR(EINVAL);



    compno = bytestream_get_byte(&s->buf);

    properties[compno] |= HAD_QCC;

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

}

static int get_qcc(J2kDecoderContext *s, int n, J2kQuantStyle *q, uint8_t *properties)

{

    int compno;



    if (s->buf_end - s->buf < 1)

        return AVERROR(EINVAL);



    compno = bytestream_get_byte(&s->buf);

    properties[compno] |= HAD_QCC;

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

}

        return AVERROR(EINVAL);     compno = bytestream_get_byte(&s->buf);     if (s->buf_end - s->buf < 1)     if (s->buf_end - s->buf < 1)     compno = bytestream_get_byte(&s->buf);
static int FUNC_0(J2kDecoderContext *VAR_0, int VAR_1, J2kQuantStyle *VAR_2, uint8_t *VAR_3)

{

    int VAR_4;



    if (VAR_0->buf_end - VAR_0->buf < 1)

        return AVERROR(EINVAL);



    VAR_4 = bytestream_get_byte(&VAR_0->buf);

    VAR_3[VAR_4] |= HAD_QCC;

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

}

static int FUNC_0(J2kDecoderContext *VAR_0, int VAR_1, J2kQuantStyle *VAR_2, uint8_t *VAR_3)
{ int VAR_4; if (VAR_0->buf_end - VAR_0->buf < 1)
return AVERROR(EINVAL); VAR_4 = bytestream_get_byte(&VAR_0->buf); VAR_3[VAR_4] |= HAD_QCC; return get_qcx(VAR_0, VAR_1-1, VAR_2+VAR_4); }