git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fcf6aa
)
ipmovie_probe: make buffer pointers const
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 25 Dec 2012 00:44:59 +0000
(
01:44
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 25 Dec 2012 00:44:59 +0000
(
01:44
+0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/ipmovie.c
patch
|
blob
|
history
diff --git
a/libavformat/ipmovie.c
b/libavformat/ipmovie.c
index
17ef7bb
..
676363b
100644
(file)
--- a/
libavformat/ipmovie.c
+++ b/
libavformat/ipmovie.c
@@
-527,8
+527,8
@@
static const char signature[] = "Interplay MVE File\x1A\0\x1A";
static int ipmovie_probe(AVProbeData *p)
{
- uint8_t *b = p->buf;
- uint8_t *b_end = p->buf + p->buf_size - sizeof(signature);
+
const
uint8_t *b = p->buf;
+
const
uint8_t *b_end = p->buf + p->buf_size - sizeof(signature);
do {
if (b[0] == signature[0] && memcmp(b, signature, sizeof(signature)) == 0)
return AVPROBE_SCORE_MAX;