[FFmpeg-cvslog] ipmovie_probe: make buffer pointers const

Michael Niedermayer git at videolan.org
Tue Dec 25 02:01:15 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 25 01:44:59 2012 +0100| [23348647b2fa6b97f3ea017d3783b8bfbb9c79fc] | committer: Michael Niedermayer

ipmovie_probe: make buffer pointers const

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

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

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

diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c
index 17ef7bb..676363b 100644
--- 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;



More information about the ffmpeg-cvslog mailing list