Paul B Mahol
03beac5b97
avcodec/xpmdec: define constants
6 years ago
Paul B Mahol
00502370f6
avcodec/xpmdec: fix small artifacts
...
The max size of uint8_t subset is 223 not 220.
6 years ago
Carl Eugen Hoyos
fe300b2ab5
lavc/xpmdec: Allow more colours per character.
...
Fixes ticket #6234 .
6 years ago
Michael Niedermayer
cb243972b1
avcodec/xpmdec: Fix multiple pointer/memory issues
...
Most of these were found through code review in response to
fixing 1466/clusterfuzz-testcase-minimized-5961584419536896
There is thus no testcase for most of this.
The initial issue was Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
James Almer
f5c8d004c2
avcodec: stop using deprecated codec flags
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Paul B Mahol
fbfbd97be2
avcodec/xpmdec: there are XPM files with dos line endings
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
58f0bbc1ea
avcodec/xpmdec: avoid "magic" numbers in function hex_char_to_number()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
dd0090eb21
avcodec/xpmdec: fix colors values which are different for X11
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
2b790b1c9e
avcodec/xpmdec: do not allow number of colors to be higher than allocated
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
fbc1f323db
avcodec/xpmdec: rename yet another function
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
9d7e71a233
avcodec/xpmdec: rename convert to hex_char_to_number
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
7133ab435a
avcodec/xpmdec: improve comment for one function and also fix 2 identation issues
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
e73325b971
avcodec/xpmdec: skip everything before signature
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
eda78c8b7f
avcodec/xpmdec: make convert function more picky about its input
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paras Chadha
5dab7b91ad
avcodec: add XPM decoder and demuxer
...
Signed-off-by: Paras Chadha <paraschadha18@gmail.com>
8 years ago