[FFmpeg-trac] #9769(avcodec:open): JPEG 2000 decoder: decoder should ignore any data that appears after End of Codestream marker 0xFFD9 (was: JPEG 2000 decoder: SOC marker not present)

FFmpeg trac at avcodec.org
Mon May 9 22:29:54 EEST 2022


#9769: JPEG 2000 decoder: decoder should ignore any data that appears after End of
Codestream marker 0xFFD9
-------------------------------------+-------------------------------------
             Reporter:  Pierre-      |                    Owner:  (none)
  Anthony Lemieux                    |
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  j2k          |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by Pierre-Anthony Lemieux):

 * summary:  JPEG 2000 decoder: SOC marker not present =>
     JPEG 2000 decoder: decoder should ignore any data that appears after
     End of Codestream marker 0xFFD9


Old description:

> Summary of the bug:
>
> JPEG 2000 decoder fails with {{{SOC marker not present}}} on a JPEG 2000
> codestream file (j2c).
>
> How to reproduce:
> {{{
> ffmpeg -i ../../j2k-samples/j2k1.j2c out.png
> ffmpeg version N-106674-gdcbf10acdc Copyright (c) 2000-2022 the FFmpeg
> developers
>   built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
> }}}

New description:

 Summary of the bug:

 JPEG 2000 decoder outputs {{{SOC marker not present}}} on a JPEG 2000
 codestream file (j2c) that contains bytes after the End of Codestream
 marker 0xFFD9.

 How to reproduce:
 {{{
 ffmpeg -i ../../j2k-samples/j2k1.j2c out.png
 ffmpeg version N-106674-gdcbf10acdc Copyright (c) 2000-2022 the FFmpeg
 developers
   built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
 }}}

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9769#comment:12>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list