[FFmpeg-devel] Patch libavcodec/jpeg2000_parser: Fix skipping of JP2 info markers...

Shaun Simpson shauns2029 at gmail.com
Wed Jul 21 18:48:02 EEST 2021


 libavcodec/jpeg2000_parser: Fix skipping of JP2 info markers by correctly
reading marker size.

This fixes playback of some JPEG2000 files that fail with a frame not found
error.

When reading the JP2 info markers, the parser can be triggered into
incorrectly calculating the number of bytes to skip of the next tag. This
is error is buffer data dependant.

This patch corrects this testing if the next marker is a info marker, and
correcting the number of skipped bytes if it is.

Please note that this is patch 2/2

PATCH 1/2 libavcodec/jpeg2000_parser: Fix parsing of tile-part  header, and
frames where the end of frame marker is at the end of the buffer

I apologise for splitting the patches this way.

Thank you,

Shaun Simpson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-libavcodec-jpeg2000_parser-Fix-skipping-of-JP2-info-.patch
Type: text/x-patch
Size: 1887 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210721/adad5f57/attachment.bin>


More information about the ffmpeg-devel mailing list