summaryrefslogtreecommitdiffstats
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-11 03:51:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-11 04:05:20 +0200
commit17b26308a2e3144bb22e7070242f1e1c7928aa7f (patch)
tree5e018ecba21b804031ff0485f576b4b793974e60 /libavformat/matroskadec.c
parent95efc651294b3cf3e5ec4b3ed36e79d7261545ff (diff)
downloadffmpeg-streaming-17b26308a2e3144bb22e7070242f1e1c7928aa7f.zip
ffmpeg-streaming-17b26308a2e3144bb22e7070242f1e1c7928aa7f.tar.gz
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@gmx.at>
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 1 insertions, 1 deletions
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++)
OpenPOWER on IntegriCloud