mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 18:25:03 +00:00
avformat/matroskadec: fix integer overflow
Fixes fate-mkv with ekopath 4 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1a5f1bcff0
commit
729fa55b8f
@ -2284,7 +2284,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
|
||||
return res;
|
||||
av_assert1(block_duration != AV_NOPTS_VALUE);
|
||||
|
||||
block_time = AV_RB16(data);
|
||||
block_time = sign_extend(AV_RB16(data), 16);
|
||||
data += 2;
|
||||
flags = *data++;
|
||||
size -= 3;
|
||||
|
Loading…
Reference in New Issue
Block a user