mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/magicyuv: set correct size of last slice for each plane
Fixes invalid read. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
cc4ab320cf
commit
e8a236add8
@ -353,7 +353,7 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
}
|
||||
|
||||
s->slices[i][j].start = offset + header_size;
|
||||
s->slices[i][j].size = avpkt->size - offset;
|
||||
s->slices[i][j].size = avpkt->size - s->slices[i][j].start;
|
||||
}
|
||||
|
||||
if (bytestream2_get_byte(&gb) != s->planes)
|
||||
|
Loading…
x
Reference in New Issue
Block a user