[FFmpeg-cvslog] concatdec: change data type to suppress warning about limited range of data type on some platforms .
Michael Niedermayer
git at videolan.org
Mon Dec 17 17:32:20 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Dec 17 14:20:29 2012 +0100| [8976ef7aec4c62e41a0abb50d2bf4dbfa3508e2a] | committer: Michael Niedermayer
concatdec: change data type to suppress warning about limited range of data type on some platforms.
Reviewed-by: Nicolas George <nicolas.george at normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8976ef7aec4c62e41a0abb50d2bf4dbfa3508e2a
---
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))))
More information about the ffmpeg-cvslog
mailing list