From 8976ef7aec4c62e41a0abb50d2bf4dbfa3508e2a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 17 Dec 2012 14:20:29 +0100 Subject: [PATCH] concatdec: change data type to suppress warning about limited range of data type on some platforms. Reviewed-by: Nicolas George Signed-off-by: Michael Niedermayer --- libavformat/concatdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c index 858701fd9e..0514755e0a 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))))