Browse Source

xbmdec: fix decoding when variable name contains an 'x'.

Fixes trac ticket #1142.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
tags/n0.11
Reimar Döffinger 13 years ago
parent
commit
a5f8417db5
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/xbmdec.c

+ 3
- 0
libavcodec/xbmdec.c View File

@@ -83,6 +83,9 @@ static int xbm_decode_frame(AVCodecContext *avctx, void *data,
if ((ret = avctx->get_buffer(avctx, p)) < 0)
return ret;

// goto start of image data
ptr += strcspn(ptr, "{") + 1;

linesize = (avctx->width + 7) / 8;
for (i = 0; i < avctx->height; i++) {
dst = p->data[0] + i * p->linesize[0];


Loading…
Cancel
Save