Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-12 04:59:30 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-05-12 05:01:25 +0300
commitacf4925f444636a828534ab47d0f86c21a7a9b4e (patch)
tree579efee143543f9384ca9f4ca4e8c1980a51cb08 /tools/graph2dot.c
parent59db9e69496258f63fae618638a2649cf302d2b6 (diff)
tools/graph2dot: use larger data types than int for array/string sizes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools/graph2dot.c')
-rw-r--r--tools/graph2dot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/graph2dot.c b/tools/graph2dot.c
index 5552b3400d..23c7331dc3 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));
@@ -181,7 +181,7 @@ int main(int argc, char **argv)
}
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;
}