7dfa8040d6
avcodec/jpeg2000_parser: Check state!=0
...
Fixes: out of array read
Fixes: 37664/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5893420460146688
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-09-14 17:34:33 +02:00
16102cada5
avcodec/jpeg2000_parser: Fix skipping of JP2 info markers by correctly reading marker size
...
Signed-off-by: Shaun Simpson <shauns2029@gmail.com >
2021-08-25 15:12:09 +02:00
01284c01c1
avcodec/jpeg2000_parser: Fix parsing of tile-part header
...
And frames where the end of frame marker is at the end of the buffer.
Signed-off-by: Shaun Simpson <shauns2029@gmail.com >
2021-08-25 14:47:03 +02:00
e625ae6092
avcodec: Constify all the AVCodecParsers
...
Possible now that the next pointer no longer exists.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:16 -03:00
d09c35677d
libavcodec/jpeg2000_parser: Add jpeg2000 parser
...
I have attempted to write a JPEG2000 Parser. Have tested
by generating a file containing 14 frames, as mentioned
by Micheal. Have also tried testing with various packet
sizes by setting -frame_size option. Additionally,
fixed a few formatting issues as pointed out by Micheal.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2020-06-07 01:23:40 +02:00