1
0
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:
Paul B Mahol 2016-06-02 22:40:57 +02:00
parent cc4ab320cf
commit e8a236add8

View File

@ -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)