tools/graph2dot: use larger data types than int for array/string sizes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit acf4925f44)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-05-12 03:59:30 +02:00
parent c0ca9773a7
commit bec4b3c856
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}