diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-03-28 11:52:52 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-04-03 12:33:15 +0200 |
commit | 8a96df7b70be509dae9ceec82d2c10a20361356d (patch) | |
tree | df0a8136bb72a26ceb9e84d56bf1dc7fb516a3a7 /libavformat/matroskadec.c | |
parent | fc43c19a567aa945398dccb491d972c11ec2a065 (diff) | |
download | ffmpeg-8a96df7b70be509dae9ceec82d2c10a20361356d.tar.gz |
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@libav.org
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 2ec669f005..67a3308d7d 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1820,7 +1820,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, |