提交 fbfbd97b 编写于 作者: P Paul B Mahol

avcodec/xpmdec: there are XPM files with dos line endings

Signed-off-by: NPaul B Mahol <onemda@gmail.com>
上级 62c8dc46
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册