[FFmpeg-cvslog] nutdec: const correctness for get_v_trace/get_s_trace function arguments

Diego Biurrun git at videolan.org
Thu Sep 27 14:36:42 CEST 2012


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Tue Sep 25 19:02:42 2012 +0200| [93e81ee81c33e74e6047053f6086d63d2f8293d4] | committer: Diego Biurrun

nutdec: const correctness for get_v_trace/get_s_trace function arguments

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

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

diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index da438ad..2013bc8 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -76,8 +76,8 @@ static uint64_t get_fourcc(AVIOContext *bc)
 }
 
 #ifdef TRACE
-static inline uint64_t get_v_trace(AVIOContext *bc, char *file,
-                                   char *func, int line)
+static inline uint64_t get_v_trace(AVIOContext *bc, const char *file,
+                                   const char *func, int line)
 {
     uint64_t v = ffio_read_varlen(bc);
 
@@ -86,8 +86,8 @@ static inline uint64_t get_v_trace(AVIOContext *bc, char *file,
     return v;
 }
 
-static inline int64_t get_s_trace(AVIOContext *bc, char *file,
-                                  char *func, int line)
+static inline int64_t get_s_trace(AVIOContext *bc, const char *file,
+                                  const char *func, int line)
 {
     int64_t v = get_s(bc);
 



More information about the ffmpeg-cvslog mailing list