Commit c88ac1e0 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/g2meet: fix regression with rgb cursors

Fixes Ticket2972
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent dcc7686a
......@@ -490,7 +490,7 @@ static int g2m_load_cursor(AVCodecContext *avctx, G2MContext *c,
cursor_hot_y = bytestream2_get_byte(gb);
cursor_fmt = bytestream2_get_byte(gb);
cursor_stride = FFALIGN(cursor_w, 32) * 4;
cursor_stride = FFALIGN(cursor_w, c->cursor_fmt==1 ? 32 : 1) * 4;
if (cursor_w < 1 || cursor_w > 256 ||
cursor_h < 1 || cursor_h > 256) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment