[libav-commits] golomb: const correctness for get_ue()/get_se() function arguments

Diego Biurrun git at libav.org
Thu Sep 27 19:17:52 CEST 2012


Module: libav
Branch: master
Commit: 80412997c868a700fe25eb41ded1c98e80a15164

Author:    Diego Biurrun <diego at biurrun.de>
Committer: Diego Biurrun <diego at biurrun.de>
Date:      Tue Sep 25 19:04:47 2012 +0200

golomb: const correctness for get_ue()/get_se() function arguments

---

 libavcodec/golomb.h |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h
index b6b8cc8..3fdec0b 100644
--- a/libavcodec/golomb.h
+++ b/libavcodec/golomb.h
@@ -372,7 +372,9 @@ static inline int get_sr_golomb_shorten(GetBitContext* gb, int k)
 
 #ifdef TRACE
 
-static inline int get_ue(GetBitContext *s, char *file, const char *func, int line){
+static inline int get_ue(GetBitContext *s, const char *file, const char *func,
+                         int line)
+{
     int show= show_bits(s, 24);
     int pos= get_bits_count(s);
     int i= get_ue_golomb(s);
@@ -386,7 +388,9 @@ static inline int get_ue(GetBitContext *s, char *file, const char *func, int lin
     return i;
 }
 
-static inline int get_se(GetBitContext *s, char *file, const char *func, int line){
+static inline int get_se(GetBitContext *s, const char *file, const char *func,
+                         int line)
+{
     int show= show_bits(s, 24);
     int pos= get_bits_count(s);
     int i= get_se_golomb(s);



More information about the libav-commits mailing list