Andreas Rheinhardt
c437afa3d3
avcodec/hcom: Mark decoder as init-threadsafe
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2021-05-02 02:56:55 +02:00
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
Andreas Rheinhardt
0bb5cc0ee9
avcodec/hcom: Cleanup generically upon init failure
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2020-09-15 19:25:26 +02:00
Michael Niedermayer
4834ec926a
avcodec/hcom: Check the root entry and the right entries
...
Fixes: Segfault
Fixes: 17991/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HCOM_fuzzer-5647235349479424
Also fixes related memleak
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-10-25 00:22:33 +02:00
Michael Niedermayer
b2785cd3ac
avcodec/hcom: Check that there are dictionary entries
...
Fixes: out of array read
Fixes: 17617/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HCOM_fuzzer-5674970478280704
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-09-26 21:02:34 +02:00
Paul B Mahol
17008a0107
avcodec/hcom: check that index into array is valid
2019-03-03 20:21:20 +01:00
Paul B Mahol
95a27a8846
avcodec/hcom: get rid of single line brackets
2019-01-15 11:34:11 +01:00
Paul B Mahol
894cbcd83b
avcodec: add HCOM decoder
2019-01-15 10:56:35 +01:00