I suggest fixing Line 416 and 430 as follows.
> - int cond = stream->pos <= length;
> + int cond = stream->pos < length;
Those are also related to the issue (ticket 10905.)
> On May 20, 2024, at 1:09, Pierre-Anthony Lemieux wrote:
>
> On Sun, May 19, 2024 at 9:02?AM Andreas Rheinhardt
> wrot
On Sun, May 19, 2024 at 9:02 AM Andreas Rheinhardt
wrote:
>
> p...@sandflow.com:
> > From: Pierre-Anthony Lemieux
> >
> > Addresses https://trac.ffmpeg.org/ticket/10905
> >
> > Co-authored-by: Osamu Watanabe
> > Signed-off-by: Pierre-Anthony Lemieux
> > --> @@ -1297,14 +1299,14 @@ ff_jpeg2000_d
p...@sandflow.com:
> From: Pierre-Anthony Lemieux
>
> Addresses https://trac.ffmpeg.org/ticket/10905
>
> Co-authored-by: Osamu Watanabe
> Signed-off-by: Pierre-Anthony Lemieux
> --> @@ -1297,14 +1299,14 @@ ff_jpeg2000_decode_htj2k(const
Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c
>
From: Pierre-Anthony Lemieux
Addresses https://trac.ffmpeg.org/ticket/10905
Co-authored-by: Osamu Watanabe
Signed-off-by: Pierre-Anthony Lemieux
---
libavcodec/jpeg2000htdec.c | 122 ---
tests/ref/fate/jpeg2000dec-ds0_ht_01_b11 | 2 +-
2 files changed, 63 i
On Fri, May 17, 2024 at 08:00:16PM +, WATANABE Osamu wrote:
> Signed-off-by: Pierre-Anthony Lemieux
> ---
> libavcodec/jpeg2000htdec.c | 122 ---
> tests/ref/fate/jpeg2000dec-ds0_ht_01_b11 | 2 +-
> 2 files changed, 63 insertions(+), 61 deletions(-)
>
> diff
Signed-off-by: Pierre-Anthony Lemieux
---
libavcodec/jpeg2000htdec.c | 122 ---
tests/ref/fate/jpeg2000dec-ds0_ht_01_b11 | 2 +-
2 files changed, 63 insertions(+), 61 deletions(-)
diff --git a/libavcodec/jpeg2000htdec.c b/libavcodec/jpeg2000htdec.c
index fa704b66