summaryrefslogtreecommitdiff
path: root/libavcodec/xpmdec.c
Commit message (Collapse)AuthorAge
* avcodec/xpmdec: Fix multiple pointer/memory issuesMichael Niedermayer2017-05-12
| | | | | | | | | 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>
* avcodec: stop using deprecated codec flagsJames Almer2017-03-25
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/xpmdec: there are XPM files with dos line endingsPaul B Mahol2017-03-13
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/xpmdec: avoid "magic" numbers in function hex_char_to_number()Paul B Mahol2017-03-12
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/xpmdec: fix colors values which are different for X11Paul B Mahol2017-03-12
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/xpmdec: do not allow number of colors to be higher than allocatedPaul B Mahol2017-03-12
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/xpmdec: rename yet another functionPaul B Mahol2017-03-12
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/xpmdec: rename convert to hex_char_to_numberPaul B Mahol2017-03-12
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/xpmdec: improve comment for one function and also fix 2 identation ↵Paul B Mahol2017-03-12
| | | | | | issues Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/xpmdec: skip everything before signaturePaul B Mahol2017-03-12
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/xpmdec: make convert function more picky about its inputPaul B Mahol2017-03-12
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec: add XPM decoder and demuxerParas Chadha2017-03-12
Signed-off-by: Paras Chadha <paraschadha18@gmail.com>