diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-04-29 17:56:12 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-05-02 01:30:04 +0400 |
commit | a5f8417db587f54daae0340fc88f684cb41d020c (patch) | |
tree | 7db38e9c0e8d4314bbb1eac644557e578bf7e654 /libavcodec/xbmdec.c | |
parent | 1f0c92d68bab52c852fda5a5669def27a57eaa97 (diff) |
xbmdec: fix decoding when variable name contains an 'x'.
Fixes trac ticket #1142.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/xbmdec.c')
-rw-r--r-- | libavcodec/xbmdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/xbmdec.c b/libavcodec/xbmdec.c index 629a636e6a..b3e4cf2f89 100644 --- a/libavcodec/xbmdec.c +++ b/libavcodec/xbmdec.c @@ -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]; |