[FFmpeg-cvslog] hlsenc: make segment number unsigned

Luca Barbato git at videolan.org
Sun Dec 30 14:27:58 CET 2012


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sat Dec 29 12:31:01 2012 +0100| [30a76487304e7250294c9c0e9fa179bf07fd822a] | committer: Luca Barbato

hlsenc: make segment number unsigned

It will overflow if somebody keeps streaming for a time long enough.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=30a76487304e7250294c9c0e9fa179bf07fd822a
---

 libavformat/hlsenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 32b8ab9..4f74b5f 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -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;



More information about the ffmpeg-cvslog mailing list