[FFmpeg-cvslog] xbmdec: fix decoding when variable name contains an 'x'.

Reimar Döffinger git at videolan.org
Tue May 1 23:30:28 CEST 2012


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sun Apr 29 15:56:12 2012 +0200| [a5f8417db587f54daae0340fc88f684cb41d020c] | committer: Reimar Döffinger

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

Fixes trac ticket #1142.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a5f8417db587f54daae0340fc88f684cb41d020c
---

 libavcodec/xbmdec.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavcodec/xbmdec.c b/libavcodec/xbmdec.c
index 629a636..b3e4cf2 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];



More information about the ffmpeg-cvslog mailing list