[FFmpeg-cvslog] tests/utils: make arguments const that arent changed

Michael Niedermayer git at videolan.org
Fri Sep 19 20:35:59 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Sep 19 19:05:02 2014 +0200| [adaa274fa8a2ffbced2150798fb9cdd6d24e183e] | committer: Michael Niedermayer

tests/utils: make arguments const that arent changed

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

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

 tests/utils.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/utils.c b/tests/utils.c
index e8ef06f..dde6e03 100644
--- a/tests/utils.c
+++ b/tests/utils.c
@@ -35,12 +35,12 @@
 } while (0)
 
 static void rgb24_to_yuv420p(unsigned char *lum, unsigned char *cb,
-                             unsigned char *cr, unsigned char *src,
+                             unsigned char *cr, const unsigned char *src,
                              int width, int height)
 {
     int wrap, wrap3, x, y;
     int r, g, b, r1, g1, b1;
-    unsigned char *p;
+    const unsigned char *p;
 
     wrap  = width;
     wrap3 = width * 3;
@@ -104,7 +104,7 @@ static void rgb24_to_yuv420p(unsigned char *lum, unsigned char *cb,
 #define DEFAULT_NB_PICT  50
 
 static void pgmyuv_save(const char *filename, int w, int h,
-                        unsigned char *rgb_tab)
+                        const unsigned char *rgb_tab)
 {
     FILE *f;
     int i, h2, w2;



More information about the ffmpeg-cvslog mailing list