]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/xpmdec.c
avcodec/xpmdec: there are XPM files with dos line endings
[ffmpeg] / libavcodec / xpmdec.c
index 605a09d05a081edd97dfb37c483afce679822128..3c025a6bc5baa0d9b7c4b59debb704189a62673b 100644 (file)
@@ -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) {