Commit 729fa55b authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/matroskadec: fix integer overflow

Fixes fate-mkv with ekopath 4
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1a5f1bcf
...@@ -2284,7 +2284,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, ...@@ -2284,7 +2284,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
return res; return res;
av_assert1(block_duration != AV_NOPTS_VALUE); av_assert1(block_duration != AV_NOPTS_VALUE);
block_time = AV_RB16(data); block_time = sign_extend(AV_RB16(data), 16);
data += 2; data += 2;
flags = *data++; flags = *data++;
size -= 3; size -= 3;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment