hlsenc: make segment number unsigned
authorLuca Barbato <lu_zero@gentoo.org>
Sat, 29 Dec 2012 11:31:01 +0000 (12:31 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 29 Dec 2012 16:26:30 +0000 (17:26 +0100)
It will overflow if somebody keeps streaming for a time long enough.

libavformat/hlsenc.c

index 32b8ab9..4f74b5f 100644 (file)
@@ -38,7 +38,7 @@ typedef struct ListEntry {
 
 typedef struct HLSContext {
     const AVClass *class;  // Class for private options.
-    int number;
+    unsigned number;
     int64_t sequence;
     AVOutputFormat *oformat;
     AVFormatContext *avf;