[FFmpeg-devel] [PATCH] xbmdec: fix decoding when variable name contains an 'x'.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sun Apr 29 15:56:53 CEST 2012
Fixes trac ticket #1142.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
libavcodec/xbmdec.c | 3 +++
1 file changed, 3 insertions(+)
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];
--
1.7.10
More information about the ffmpeg-devel
mailing list