diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-03-12 23:13:26 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-03-13 20:40:41 +0100 |
commit | fbfbd97be25c4da0562ef61e2f27192d1ec4d276 (patch) | |
tree | d3f5b1b93274f463a56e4b4d513f6c7105b48749 /libavcodec | |
parent | 62c8dc46429bd75a27142c142f8c50139d8a0702 (diff) | |
download | ffmpeg-fbfbd97be25c4da0562ef61e2f27192d1ec4d276.tar.gz |
avcodec/xpmdec: there are XPM files with dos line endings
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/xpmdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/xpmdec.c b/libavcodec/xpmdec.c index 605a09d05a..3c025a6bc5 100644 --- a/libavcodec/xpmdec.c +++ b/libavcodec/xpmdec.c @@ -307,7 +307,7 @@ static int xpm_decode_frame(AVCodecContext *avctx, void *data, avctx->pix_fmt = AV_PIX_FMT_BGRA; end = avpkt->data + avpkt->size; - while (memcmp(ptr, "/* XPM */\n", 10) && ptr < end - 10) + while (memcmp(ptr, "/* XPM */", 9) && ptr < end - 9) ptr++; if (ptr >= end) { |