[libav-devel] [PATCH] nutenc: const correctness for ff_put_v_trace/put_s_trace function arguments

Justin Ruggles justin.ruggles at gmail.com
Thu Sep 27 19:34:40 CEST 2012


On 09/27/2012 01:31 PM, Diego Biurrun wrote:
> ---
>  libavformat/nutenc.c |    8 ++++++--
>  1 files changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
> index 8d7debc..4b1e663 100644
> --- a/libavformat/nutenc.c
> +++ b/libavformat/nutenc.c
> @@ -259,13 +259,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);

LGTM

-Justin



More information about the libav-devel mailing list