summaryrefslogtreecommitdiff
path: root/libavcodec/ylc.c
Commit message (Collapse)AuthorAge
* avcodec/ylc: Inline constantsAndreas Rheinhardt2020-10-16
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* pthread_frame: merge the functionality for normal decoder init and ↵Anton Khirnov2020-04-10
| | | | | | | | | | | | | | | | init_thread_copy The current design, where - proper init is called for the first per-thread context - first thread's private data is copied into private data for all the other threads - a "fixup" function is called for all the other threads to e.g. allocate dynamically allocated data is very fragile and hard to follow, so it is abandoned. Instead, the same init function is used to init each per-thread context. Where necessary, AVCodecInternal.is_copy can be used to differentiate between the first thread and the other ones (e.g. for decoding the extradata just once).
* avcodec/ylc: Fix shift overflowMichael Niedermayer2017-07-24
| | | | | | | | Fixes: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' Fixes: 2698/clusterfuzz-testcase-minimized-4713541443518464 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ylc: Fix vlc of 31 bitsMichael Niedermayer2017-07-08
| | | | | | | | | Fixes: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' Fixes: 2515/clusterfuzz-testcase-minimized-6197200012967936 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/ylc: Check count in build_vlc()Michael Niedermayer2017-05-28
| | | | | | | | Fixes: runtime error: signed integer overflow: 211633430 + 2147483647 cannot be represented in type 'int' Fixes: 1874/clusterfuzz-testcase-minimized-5037763613163520 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ylc: thread safe initialization is possible with this codecPaul B Mahol2016-12-26
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/ylc: add frame threading supportPaul B Mahol2016-12-26
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/ylc: do not leak memory at uninitPaul B Mahol2016-12-26
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec: add YUY2 Lossless Codec decoderPaul B Mahol2016-06-26
Signed-off-by: Paul B Mahol <onemda@gmail.com>