[FFmpeg-cvslog] r22127 - trunk/libavformat/nutdec.c

benoit subversion
Mon Mar 1 08:26:41 CET 2010


Author: benoit
Date: Mon Mar  1 08:26:41 2010
New Revision: 22127

Log:
nutdec: make chapter start and length uint64_t to prevent overflows.
Patch by Anton Khirnov wyskas chez gmail punto com

Modified:
   trunk/libavformat/nutdec.c

Modified: trunk/libavformat/nutdec.c
==============================================================================
--- trunk/libavformat/nutdec.c	Mon Mar  1 08:22:59 2010	(r22126)
+++ trunk/libavformat/nutdec.c	Mon Mar  1 08:26:41 2010	(r22127)
@@ -389,8 +389,8 @@ static void set_disposition_bits(AVForma
 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];



More information about the ffmpeg-cvslog mailing list