[FFmpeg-trac] #9769(avcodec:open): JPEG 2000 decoder: decoder should ignore any data that appears after End of Codestream marker 0xFFD9
FFmpeg
trac at avcodec.org
Sun Aug 7 02:50:10 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: minor | Component: avcodec
Version: git-master | Resolution:
Keywords: j2k | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Pierre-Anthony Lemieux):
Replying to [comment:20 Carl Eugen Hoyos]:
> Replying to [ticket:9769 Pierre-Anthony Lemieux]:
>
> > A J2C file can contain only one codestreams, and thus bytes after the
End of Codestream marker 0xFFD9 should be ignored.
>
> Why do you think so? Can you point to the specification saying so?
A JPEG 2000 codestream is defined as starting with the SOC marker and
ending with an EOC marker ("EOC indicates the end of the codestream" in
ITU t.800), so bytes following the EOC marker can be ignored.
Some applications might purposefully add bytes after the EOC, e.g., in the
case of constant bitrate streaming where the same amount of bytes (over
the wire) is used for all codestreams.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9769#comment:22>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list