diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-12 03:59:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-17 21:50:06 +0200 |
commit | 6bb62d64d2400a2d3139855b89fb911b0638cfbc (patch) | |
tree | 4bb1bf16ad8a77b3a25e5b7b196255d95534d960 | |
parent | 404db2b99eca0e71cc8026839c6e1fc43f2c86e3 (diff) | |
download | ffmpeg-6bb62d64d2400a2d3139855b89fb911b0638cfbc.tar.gz |
tools/graph2dot: use larger data types than int for array/string sizes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit acf4925f444636a828534ab47d0f86c21a7a9b4e)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | tools/graph2dot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/graph2dot.c b/tools/graph2dot.c index 964322d080..868c62f0d8 100644 --- a/tools/graph2dot.c +++ b/tools/graph2dot.c @@ -153,7 +153,7 @@ int main(int argc, char **argv) /* read from infile and put it in a buffer */ { - unsigned int count = 0; + int64_t count = 0; struct line *line, *last_line, *first_line; char *p; last_line = first_line = av_malloc(sizeof(struct line)); @@ -169,7 +169,7 @@ int main(int argc, char **argv) graph_string = av_malloc(count + 1); p = graph_string; for (line = first_line; line->next; line = line->next) { - unsigned int l = strlen(line->data); + size_t l = strlen(line->data); memcpy(p, line->data, l); p += l; } |