You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/xpmdec: there are XPM files with dos line endings
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -307,7 +307,7 @@ static int xpm_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
avctx->pix_fmt = AV_PIX_FMT_BGRA;
|
avctx->pix_fmt = AV_PIX_FMT_BGRA;
|
||||||
|
|
||||||
end = avpkt->data + avpkt->size;
|
end = avpkt->data + avpkt->size;
|
||||||
while (memcmp(ptr, "/* XPM */\n", 10) && ptr < end - 10)
|
while (memcmp(ptr, "/* XPM */", 9) && ptr < end - 9)
|
||||||
ptr++;
|
ptr++;
|
||||||
|
|
||||||
if (ptr >= end) {
|
if (ptr >= end) {
|
||||||
|
Reference in New Issue
Block a user