avformat/matroskadec: Use size_t for the variable holding a strlen() value.
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 11 May 2015 01:51:17 +0000 (03:51 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 11 May 2015 02:05:20 +0000 (04:05 +0200)
Should make no difference but is more correct

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/matroskadec.c

index 3caee3a..1b738dd 100644 (file)
@@ -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++)