1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-28 12:32:17 +02:00
FFmpeg/libavcodec
Michael Niedermayer 3c56b5c3df
avcodec/jpeg2000dec: jpeg2000 has its own lowres option
jpeg2000 overrides the global lowres variable with a lowres field called reduction_factor
ffmpeg -lowres X causes the reduction_factor to be set
ffplay -lowres X causes both lowres and the reduction_factor to be set
ossfuss sets only lowres

only the ffmpeg variant works. This patch tries to make the other 2 work.

Alternative we could just error out if things are inconsistent.
More complex restructuring should be limited to the master branch
to keep this reasonably easy to backport

Fixes: out of array access
Fixes: 59672/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c012d1f2bb8735f2b17ce88cd8181d2ffc989b02)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-10-30 00:39:04 +01:00
..
2023-03-26 15:30:31 +02:00
2022-07-07 21:52:52 +02:00
2022-06-25 09:05:58 +08:00
2022-06-24 15:37:23 +08:00
2022-06-24 15:37:23 +08:00
2022-05-08 10:38:54 +08:00
2022-07-09 20:06:47 +02:00
2023-10-30 00:38:53 +01:00
2022-07-07 21:52:52 +02:00
2022-07-12 21:55:22 +02:00
2023-02-22 00:32:19 +01:00
2022-06-25 09:05:58 +08:00
2022-05-30 19:44:11 +02:00
2023-10-30 00:38:51 +01:00
2022-06-16 10:23:30 +02:00
2022-07-03 15:16:31 +02:00
2022-07-04 15:04:08 +02:00
2023-10-30 00:39:00 +01:00
2022-07-03 15:16:31 +02:00
2022-07-03 15:16:31 +02:00
2022-07-03 15:16:31 +02:00
2023-02-22 01:02:57 +01:00
2023-02-22 00:10:15 +01:00
2023-02-21 23:53:32 +01:00
2023-10-30 00:38:57 +01:00
2022-04-13 00:37:06 +02:00
2022-06-25 09:05:58 +08:00
2022-07-13 00:27:37 +02:00
2022-07-12 21:55:22 +02:00