[FFmpeg-cvslog] tools/graph2dot: use larger data types than int for array/string sizes

Michael Niedermayer git at videolan.org
Thu May 21 21:25:58 CEST 2015


ffmpeg | branch: release/2.5 | Michael Niedermayer <michaelni at gmx.at> | Tue May 12 03:59:30 2015 +0200| [9c10c0fdcd2f77d39fc019c403bec70c5db9feb1] | committer: Michael Niedermayer

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

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9c10c0fdcd2f77d39fc019c403bec70c5db9feb1
---

 tools/graph2dot.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/graph2dot.c b/tools/graph2dot.c
index 964322d..868c62f 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;
         }



More information about the ffmpeg-cvslog mailing list