mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 09:35:22 +00:00
avcodec/g2meet: Fix order of align and pixel size multiplication.
Fixes out of array accesses Fixes Ticket2922 Found-by: ami_stuff Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e428632c1a
commit
821a5938d1
@ -453,7 +453,7 @@ static int g2m_init_buffers(G2MContext *c)
|
||||
if (!c->synth_tile || !c->jpeg_tile ||
|
||||
c->old_tile_w < c->tile_width ||
|
||||
c->old_tile_h < c->tile_height) {
|
||||
c->tile_stride = FFALIGN(c->tile_width * 3, 16);
|
||||
c->tile_stride = FFALIGN(c->tile_width, 16) * 3;
|
||||
aligned_height = FFALIGN(c->tile_height, 16);
|
||||
av_free(c->synth_tile);
|
||||
av_free(c->jpeg_tile);
|
||||
|
Loading…
Reference in New Issue
Block a user