summaryrefslogtreecommitdiff
path: root/libavcodec/jpeg2000_parser.c
Commit message (Collapse)AuthorAge
* libavcodec/jpeg2000_parser: Localize m->bytes_readTomas Härdin2022-06-10
| | | | Another 6%
* libavcodec/jpeg2000_parser: ReindentTomas Härdin2022-06-10
|
* libavcodec/jpeg2000_parser: Rearrange ifsTomas Härdin2022-06-10
| | | | A modest 8% improvement
* libavcodec/jpeg2000_parser: LUTify info_marker()Tomas Härdin2022-06-10
| | | | This speeds find_frame_end() up by 39% according to valgrind
* libavcodec/jpeg2000_parser: next_state is just a temporaryTomas Härdin2022-06-10
|
* libavcodec/jpeg2000_parser: Simplify, fix reset_context()Tomas Härdin2022-06-10
|
* libavcodec/jpeg2000_parser: Speed up long skipsTomas Härdin2022-06-10
|
* avcodec/jpeg2000_parser: Check state!=0Michael Niedermayer2021-09-14
| | | | | | | | | 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>
* avcodec/jpeg2000_parser: Fix skipping of JP2 info markers by correctly ↵Shaun Simpson2021-08-25
| | | | | | reading marker size Signed-off-by: Shaun Simpson <shauns2029@gmail.com>
* avcodec/jpeg2000_parser: Fix parsing of tile-part headerShaun Simpson2021-08-25
| | | | | | And frames where the end of frame marker is at the end of the buffer. Signed-off-by: Shaun Simpson <shauns2029@gmail.com>
* avcodec: Constify all the AVCodecParsersAndreas Rheinhardt2021-04-27
| | | | | | | 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>
* libavcodec/jpeg2000_parser: Add jpeg2000 parserGautam Ramakrishnan2020-06-07
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>