[FFmpeg-devel] [PATCH] concatdec: change data type to suppress warning about limited range of data type on some platforms.

Michael Niedermayer michaelni at gmx.at
Mon Dec 17 14:21:52 CET 2012


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavformat/concatdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
index 858701f..0514755 100644
--- a/libavformat/concatdec.c
+++ b/libavformat/concatdec.c
@@ -68,7 +68,7 @@ static int add_file(AVFormatContext *avf, char *filename, ConcatFile **rfile,
     av_free(filename);
 
     if (cat->nb_files >= *nb_files_alloc) {
-        unsigned n = FFMAX(*nb_files_alloc * 2, 16);
+        size_t n = FFMAX(*nb_files_alloc * 2, 16);
         ConcatFile *new_files;
         if (n <= cat->nb_files || n > SIZE_MAX / sizeof(*cat->files) ||
             !(new_files = av_realloc(cat->files, n * sizeof(*cat->files))))
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list