[vlc-devel] [vlc-commits] decoder: fix debug message

Rafaël Carré funman at videolan.org
Wed Apr 2 10:25:36 CEST 2014


On 04/01/14 22:22, Rémi Denis-Courmont wrote:
> vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr  1 23:21:19 2014 +0300| [029c7a0a8a81476f8280ea362fb5f3a91b2161ef] | committer: Rémi Denis-Courmont
> 
> decoder: fix debug message
> 
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=029c7a0a8a81476f8280ea362fb5f3a91b2161ef
> ---
> 
>  src/input/decoder.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/input/decoder.c b/src/input/decoder.c
> index 46129fc..714bddb 100644
> --- a/src/input/decoder.c
> +++ b/src/input/decoder.c
> @@ -1065,7 +1065,8 @@ static void DecoderFixTs( decoder_t *p_dec, mtime_t *pi_ts0, mtime_t *pi_ts1,
>          if( pi_ts1 && *pi_ts1 > VLC_TS_INVALID )
>              *pi_ts1 += i_es_delay;
>          if( input_clock_ConvertTS( p_clock, &i_rate, pi_ts0, pi_ts1, i_ts_bound ) ) {
> -            msg_Err(p_dec, "Could not convert timestamps %"PRId64", %"PRId64"", pi_ts0, pi_ts1);
> +            msg_Err(p_dec, "Could not convert timestamps %"PRId64", %"PRId64"",
> +                    *pi_ts0, *pi_ts1);

There is a NULL dereference

>              *pi_ts0 = VLC_TS_INVALID;
>          }
>      }



More information about the vlc-devel mailing list