[FFmpeg-cvslog] avformat/matroskadec: fix integer overflow
Michael Niedermayer
git at videolan.org
Sun May 19 23:44:08 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 19 23:38:01 2013 +0200| [729fa55b8f4250b2fee7f4a511372d0b9f696389] | committer: Michael Niedermayer
avformat/matroskadec: fix integer overflow
Fixes fate-mkv with ekopath 4
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=729fa55b8f4250b2fee7f4a511372d0b9f696389
---
libavformat/matroskadec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 648941e..fc3e4f0 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list