[vlc-devel] [vlc-commits] transcode: add likely/unlikely in video process

Rafaël Carré funman at videolan.org
Thu Feb 2 18:40:35 CET 2012


Le 2012-02-01 05:20, Ilkka Ollakka a écrit :
> vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Jan 29 13:17:58 2012 +0200| [2b60e75b567d3aa9e980fe099c33ff1a033797dd] | committer: Ilkka Ollakka
> 
> transcode: add likely/unlikely in video process
> 
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2b60e75b567d3aa9e980fe099c33ff1a033797dd
> ---
> 
>  modules/stream_out/transcode/video.c |   24 ++++++++++++------------
>  1 files changed, 12 insertions(+), 12 deletions(-)
> 
> diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c


> @@ -745,7 +745,7 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_t *id,
>                 {
>                     /* We can't modify the picture, we need to duplicate it */
>                     p_pic2 = video_new_buffer_decoder( id->p_decoder );
> -                   if( p_pic2 != NULL )
> +                   if( unlikely( p_pic2 != NULL ) )

I think it's an error

>                     {
>                         picture_Copy( p_pic2, p_pic );
>                         p_pic2->date = i_pts;




More information about the vlc-devel mailing list