Commit 8976ef7a authored by Michael Niedermayer's avatar Michael Niedermayer

concatdec: change data type to suppress warning about limited range of data type on some platforms.

Reviewed-by: 's avatarNicolas George <nicolas.george@normalesup.org>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent df0d6735
......@@ -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))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment