diff options
author | Anton Khirnov <wyskas@gmail.com> | 2010-03-01 07:26:41 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2010-03-01 07:26:41 +0000 |
commit | e1c0b00b06803ab66c88841c1caff9d3416c952d (patch) | |
tree | 40a5490ef7a5f37d6c146f5276e0c43e64e4c6b3 | |
parent | c71591a5096514c2b0198c16d82bfd703b03c184 (diff) | |
download | ffmpeg-e1c0b00b06803ab66c88841c1caff9d3416c952d.tar.gz |
nutdec: make chapter start and length uint64_t to prevent overflows.
Patch by Anton Khirnov wyskas chez gmail punto com
Originally committed as revision 22127 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/nutdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 8ca59231a8..415f720c18 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -389,8 +389,8 @@ static void set_disposition_bits(AVFormatContext* avf, char* value, int stream_i 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]; |