Commit f399b33c authored by Michael Niedermayer's avatar Michael Niedermayer

jpeg2000dec & j2kdec: Fix return type of get_sot()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4a9a6a1f
......@@ -435,7 +435,7 @@ static int get_qcc(Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q, uint
}
/** get start of tile segment */
static uint8_t get_sot(Jpeg2000DecoderContext *s)
static int get_sot(Jpeg2000DecoderContext *s)
{
if (bytestream2_get_bytes_left(&s->g) < 8)
return AVERROR(EINVAL);
......
......@@ -406,7 +406,7 @@ static int get_qcc(Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q,
}
/* Get start of tile segment. */
static uint8_t get_sot(Jpeg2000DecoderContext *s, int n)
static int get_sot(Jpeg2000DecoderContext *s, int n)
{
Jpeg2000TilePart *tp;
uint16_t Isot;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment