Mercurial > libavformat.hg
changeset 5732:12baf46105f4 libavformat
nutdec: make chapter start and length uint64_t to prevent overflows.
Patch by Anton Khirnov wyskas chez gmail punto com
author | benoit |
---|---|
date | Mon, 01 Mar 2010 07:26:41 +0000 |
parents | c5a662ed3ab5 |
children | 6f9d6b3aae49 |
files | nutdec.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/nutdec.c Sun Feb 28 22:33:22 2010 +0000 +++ b/nutdec.c Mon Mar 01 07:26:41 2010 +0000 @@ -389,8 +389,8 @@ static int decode_info_header(NUTContext *nut){ AVFormatContext *s= nut->avf; ByteIOContext *bc = s->pb; - uint64_t tmp; - unsigned int stream_id_plus1, chapter_start, chapter_len, count; + uint64_t tmp, chapter_start, chapter_len; + unsigned int stream_id_plus1, count; int chapter_id, i; int64_t value, end; char name[256], str_value[1024], type_str[256];