[FFmpeg-cvslog] golomb: const correctness for get_ue()/get_se() 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> | Tue Sep 25 19:04:47 2012 +0200| [80412997c868a700fe25eb41ded1c98e80a15164] | committer: Diego Biurrun

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

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

 libavcodec/golomb.h |    8 ++++++--
 1 file 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 ffmpeg-cvslog mailing list