Browse Source

jpeg2000dec & j2kdec: Fix return type of get_sot()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
f399b33c2b
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavcodec/j2kdec.c
  2. +1
    -1
      libavcodec/jpeg2000dec.c

+ 1
- 1
libavcodec/j2kdec.c View File

@@ -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);


+ 1
- 1
libavcodec/jpeg2000dec.c View File

@@ -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;


Loading…
Cancel
Save