Andreas Rheinhardt
a247ac640d
avcodec: Constify AVCodecs
...
Given that the AVCodec.next pointer has now been removed, most of the
AVCodecs are not modified at all any more and can therefore be made
const (as this patch does); the only exceptions are the very few codecs
for external libraries that have a init_static_data callback.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:15 -03:00
Anton Khirnov
e15371061d
lavu/mem: move the DECLARE_ALIGNED macro family to mem_internal on next+1 bump
...
They are not properly namespaced and not intended for public use.
2021-01-01 14:14:57 +01:00
Andreas Rheinhardt
0ecd6879b3
avcodec/imm4: Inline constants
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2020-12-08 17:51:47 +01:00
Andreas Rheinhardt
dc4c9744eb
avcodec/imm4: Reduce the size of tables used to initialize VLCs
...
By switching from ff_init_vlc_sparse() to ff_init_vlc_from_lengths() one
can remove arrays of codes in cases where there were already symbols
tables.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2020-12-08 17:51:47 +01:00
Andreas Rheinhardt
c14656c170
avcodec/imm4: Make better use of symbols table
...
Also inline the VLC's number of bits while at it.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2020-12-08 17:51:47 +01:00
Andreas Rheinhardt
50d50653d1
avcodec/imm4: Don't use too big VLC table
...
Using more bits than the longest code has makes no sense.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2020-11-24 11:35:03 +01:00
Paul B Mahol
a208c277f8
avcodec/imm4: flush prev_frame after seeking
2019-04-13 18:32:58 +02:00
Michael Niedermayer
0be0197f49
avcodec/imm4: Unreference previous frame on frame size change
...
Fixes: Out of array access
Fixes: 13552/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IMM4_fuzzer-5767949648920576
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 >
2019-03-10 20:42:59 +01:00
Paul B Mahol
7b966af930
avcodec/imm4: fix artifacts on some files with special coding mode
2019-03-07 01:41:36 +01:00
Paul B Mahol
93402561fd
avcodec/imm4: add support for mid-stream size changes
2019-03-06 20:31:34 +01:00
Michael Niedermayer
c305e134ce
avcodec/imm4: Use ff_set_dimensions()
...
Fixes: Out of memory
Fixes: 10970/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IMM4_fuzzer-5698750043914240
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-11-10 23:48:27 +01:00
Paul B Mahol
40c4b9dad0
avcodec/imm4: improve decoding of some files
2018-10-14 14:19:56 +02:00
Paul B Mahol
330dd59a30
avcodec/imm4: stop using FAAN idct
2018-10-12 19:24:08 +02:00
Paul B Mahol
42a99b76de
avcodec: add IMM4 decoder
...
This work is sponsored by VideoLAN.
2018-08-21 11:52:06 +02:00