[FFmpeg-cvslog] nutenc: const correctness for ff_put_v_trace/put_s_trace function arguments

Diego Biurrun git at videolan.org
Fri Sep 28 13:58:19 CEST 2012


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Sep 27 19:30:37 2012 +0200| [bc66827fb1db24796cd1898f4e7dd7407a8c0aca] | committer: Diego Biurrun

nutenc: const correctness for ff_put_v_trace/put_s_trace function arguments

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

 libavformat/nutenc.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index df0301b..29b6dcd 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -263,13 +263,17 @@ static void put_s(AVIOContext *bc, int64_t val){
 }
 
 #ifdef TRACE
-static inline void ff_put_v_trace(AVIOContext *bc, uint64_t v, char *file, char *func, int line){
+static inline void ff_put_v_trace(AVIOContext *bc, uint64_t v, const char *file,
+                                  const char *func, int line)
+{
     av_log(NULL, AV_LOG_DEBUG, "ff_put_v %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line);
 
     ff_put_v(bc, v);
 }
 
-static inline void put_s_trace(AVIOContext *bc, int64_t v, char *file, char *func, int line){
+static inline void put_s_trace(AVIOContext *bc, int64_t v, const char *file,
+                               const char *func, int line)
+{
     av_log(NULL, AV_LOG_DEBUG, "put_s %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line);
 
     put_s(bc, v);



More information about the ffmpeg-cvslog mailing list