[FFmpeg-cvslog] g2meet: Respect cursor_stride properly everywhere
Kostya Shishkov
git at videolan.org
Thu Sep 26 10:42:08 CEST 2013
ffmpeg | branch: master | Kostya Shishkov <kostya.shishkov at gmail.com> | Wed Sep 25 12:09:33 2013 +0300| [4370f65be8d714a0bc73047501027464aaa2466c] | committer: Martin Storsjö
g2meet: Respect cursor_stride properly everywhere
This fixes a regression with rgb cursors since b1e46988.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4370f65be8d714a0bc73047501027464aaa2466c
---
libavcodec/g2meet.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c
index 1bbac2d..e7743e7 100644
--- a/libavcodec/g2meet.c
+++ b/libavcodec/g2meet.c
@@ -540,6 +540,7 @@ static int g2m_load_cursor(AVCodecContext *avctx, G2MContext *c,
bits <<= 1;
}
}
+ dst += c->cursor_stride - c->cursor_w * 4;
}
dst = c->cursor;
@@ -565,6 +566,7 @@ static int g2m_load_cursor(AVCodecContext *avctx, G2MContext *c,
bits <<= 1;
}
}
+ dst += c->cursor_stride - c->cursor_w * 4;
}
break;
case 32: // full colour
@@ -578,6 +580,7 @@ static int g2m_load_cursor(AVCodecContext *avctx, G2MContext *c,
*dst++ = val >> 16;
*dst++ = val >> 24;
}
+ dst += c->cursor_stride - c->cursor_w * 4;
}
break;
default:
More information about the ffmpeg-cvslog
mailing list