[FFmpeg-cvslog] matroska: fix a corner case in ebml-lace parsing
Luca Barbato
git at videolan.org
Sun May 12 12:55:43 CEST 2013
ffmpeg | branch: release/1.1 | Luca Barbato <lu_zero at gentoo.org> | Thu Mar 28 11:52:52 2013 +0100| [05015d03da1d745bb92915b5cea92dec16af719f] | committer: Reinhard Tartler
matroska: fix a corner case in ebml-lace parsing
Make sure we notice when the lace_size[n] is a negative value.
CC: libav-stable at libav.org
(cherry picked from commit 8a96df7b70be509dae9ceec82d2c10a20361356d)
Signed-off-by: Reinhard Tartler <siretart at tauware.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=05015d03da1d745bb92915b5cea92dec16af719f
---
libavformat/matroskadec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 86ff477..962493c 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1821,7 +1821,7 @@ static int matroska_parse_laces(MatroskaDemuxContext *matroska, uint8_t **buf,
case 0x3: /* EBML lacing */ {
uint64_t num;
- uint32_t total;
+ uint64_t total;
n = matroska_ebmlnum_uint(matroska, data, size, &num);
if (n < 0) {
av_log(matroska->ctx, AV_LOG_INFO,
More information about the ffmpeg-cvslog
mailing list