diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-17 14:20:29 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-17 17:31:34 +0100 |
commit | 8976ef7aec4c62e41a0abb50d2bf4dbfa3508e2a (patch) | |
tree | 20c3c94d9c36efea12fef2170eb524c666542f37 | |
parent | df0d6735b38d6a1317c1d3e56048ce59b350a086 (diff) | |
download | ffmpeg-8976ef7aec4c62e41a0abb50d2bf4dbfa3508e2a.tar.gz |
concatdec: change data type to suppress warning about limited range of data type on some platforms.
Reviewed-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/concatdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)))) |