[FFmpeg-cvslog] loas_probe: make buffer pointers const

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


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 25 01:45:56 2012 +0100| [e1f9432644a020d8556c00eccde8d9432db416e4] | committer: Michael Niedermayer

loas_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=e1f9432644a020d8556c00eccde8d9432db416e4
---

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

diff --git a/libavformat/loasdec.c b/libavformat/loasdec.c
index ccb9464..2a06fe1 100644
--- a/libavformat/loasdec.c
+++ b/libavformat/loasdec.c
@@ -29,10 +29,10 @@ static int loas_probe(AVProbeData *p)
 {
     int max_frames = 0, first_frames = 0;
     int fsize, frames;
-    uint8_t *buf0 = p->buf;
-    uint8_t *buf2;
-    uint8_t *buf;
-    uint8_t *end = buf0 + p->buf_size - 3;
+    const uint8_t *buf0 = p->buf;
+    const uint8_t *buf2;
+    const uint8_t *buf;
+    const uint8_t *end = buf0 + p->buf_size - 3;
     buf = buf0;
 
     for(; buf < end; buf= buf2+1) {



More information about the ffmpeg-cvslog mailing list