mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-24 20:12:51 +00:00
xbmdec: fix decoding when variable name contains an 'x'.
Fixes trac ticket #1142. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
1f0c92d68b
commit
a5f8417db5
@ -83,6 +83,9 @@ static int xbm_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
if ((ret = avctx->get_buffer(avctx, p)) < 0)
|
if ((ret = avctx->get_buffer(avctx, p)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
// goto start of image data
|
||||||
|
ptr += strcspn(ptr, "{") + 1;
|
||||||
|
|
||||||
linesize = (avctx->width + 7) / 8;
|
linesize = (avctx->width + 7) / 8;
|
||||||
for (i = 0; i < avctx->height; i++) {
|
for (i = 0; i < avctx->height; i++) {
|
||||||
dst = p->data[0] + i * p->linesize[0];
|
dst = p->data[0] + i * p->linesize[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user