avcodec/tdsc: remove double stride adjustment
Fixes: out of array access Found-by: Seung Min Shin Patch based on suggested fix by Seung Min Shin Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
michaelni
parent
5408059eb7
commit
242ff799c7
@@ -240,7 +240,6 @@ static int tdsc_load_cursor(AVCodecContext *avctx)
|
||||
bits <<= 1;
|
||||
}
|
||||
}
|
||||
dst += ctx->cursor_stride - ctx->cursor_w * 4;
|
||||
}
|
||||
|
||||
dst = ctx->cursor;
|
||||
@@ -272,7 +271,6 @@ static int tdsc_load_cursor(AVCodecContext *avctx)
|
||||
bits <<= 1;
|
||||
}
|
||||
}
|
||||
dst += ctx->cursor_stride - ctx->cursor_w * 4;
|
||||
}
|
||||
break;
|
||||
case CUR_FMT_BGRA:
|
||||
|
||||
Reference in New Issue
Block a user