Michael Niedermayer
c01cd2a8b2
avcodec/lscrdec: Check length in decode_idat()
...
Fixes: out of array access
Fixes: 32264/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LSCR_fuzzer-6684504010915840
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-04-01 10:10:21 +02:00
Anton Khirnov
781fc06f8e
lscrdec: add copyright header
...
As requested by the author.
2021-03-08 09:31:04 +01:00
Anton Khirnov
d3d99a0a06
lavc/lscrdec: use ff_reget_buffer()
...
It is simpler and more efficient.
Suggested-by: James Almer <jamrial@gmail.com >
2021-02-24 17:16:46 +01:00
Anton Khirnov
087359ad85
lavc/lscrdec: drop unapplicable private capabilities
...
FF_CODEC_CAP_ALLOCATE_PROGRESS makes no sense because the decoder does
not support frame threading.
FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM makes no sense because the decoder
does not handle skip_frame.
2021-02-24 17:16:46 +01:00
Anton Khirnov
3a5b857d4c
lavc: split LSCR decoder out of PNG decoder
...
It shares very little code with pngdec, so keeping them together only
makes the code harder to read.
2021-02-24 17:16:46 +01:00