Browse Source

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

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.3
Paul B Mahol 9 years ago
parent
commit
fbfbd97be2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/xpmdec.c

+ 1
- 1
libavcodec/xpmdec.c View 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) {


Loading…
Cancel
Save