Merge commit 'b1e4698853'
* commit 'b1e4698853': g2meet: Allocate cursor buffers large enough to fit the aligned width See:3c4c5ca1c1Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
fa9e8bafc8
1 changed files with 1 additions and 6 deletions
|
|
@ -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 = cursor_w * 4;
|
||||
cursor_stride = FFALIGN(cursor_w, 32) * 4;
|
||||
|
||||
if (cursor_w < 1 || cursor_w > 256 ||
|
||||
cursor_h < 1 || cursor_h > 256) {
|
||||
|
|
@ -516,11 +516,6 @@ static int g2m_load_cursor(AVCodecContext *avctx, G2MContext *c,
|
|||
return AVERROR_PATCHWELCOME;
|
||||
}
|
||||
|
||||
if (cursor_fmt == 1 && cursor_w % 32) {
|
||||
avpriv_report_missing_feature(avctx, "odd monochrome cursor width %d", cursor_w);
|
||||
return AVERROR_PATCHWELCOME;
|
||||
}
|
||||
|
||||
tmp = av_realloc(c->cursor, cursor_stride * cursor_h);
|
||||
if (!tmp) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Cannot allocate cursor buffer\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue