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>
(cherry picked from commit 242ff799c7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -241,7 +241,6 @@ static int tdsc_load_cursor(AVCodecContext *avctx)
|
||||
bits <<= 1;
|
||||
}
|
||||
}
|
||||
dst += ctx->cursor_stride - ctx->cursor_w * 4;
|
||||
}
|
||||
|
||||
dst = ctx->cursor;
|
||||
@@ -273,7 +272,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