[FFmpeg-cvslog] avformat/matroskadec: Use size_t for the variable holding a strlen() value.

Michael Niedermayer git at videolan.org
Mon May 11 04:06:18 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 11 03:51:17 2015 +0200| [17b26308a2e3144bb22e7070242f1e1c7928aa7f] | committer: Michael Niedermayer

avformat/matroskadec: Use size_t for the variable holding a strlen() value.

Should make no difference but is more correct

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

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

 libavformat/matroskadec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 3caee3a..1b738dd 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1186,7 +1186,7 @@ static int matroska_probe(AVProbeData *p)
      * availability of that array of characters inside the header.
      * Not fully fool-proof, but good enough. */
     for (i = 0; i < FF_ARRAY_ELEMS(matroska_doctypes); i++) {
-        int probelen = strlen(matroska_doctypes[i]);
+        size_t probelen = strlen(matroska_doctypes[i]);
         if (total < probelen)
             continue;
         for (n = 4 + size; n <= 4 + size + total - probelen; n++)



More information about the ffmpeg-cvslog mailing list