[vlc-commits] packetizer: add unlikely

Ilkka Ollakka git at videolan.org
Tue Jul 15 15:09:30 CEST 2014


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Mar 15 17:14:12 2014 +0200| [5626168c421dd3eb5590048b3cf61e3dc8b41a87] | committer: Ilkka Ollakka

packetizer: add unlikely

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5626168c421dd3eb5590048b3cf61e3dc8b41a87
---

 modules/packetizer/packetizer_helper.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/packetizer_helper.h b/modules/packetizer/packetizer_helper.h
index a06db93..33754b7 100644
--- a/modules/packetizer/packetizer_helper.h
+++ b/modules/packetizer/packetizer_helper.h
@@ -98,7 +98,7 @@ static inline block_t *packetizer_Packetize( packetizer_t *p_pack, block_t **pp_
     if( !pp_block || !*pp_block )
         return NULL;
 
-    if( (*pp_block)->i_flags&(BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) )
+    if( unlikely( (*pp_block)->i_flags&(BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) ) )
     {
         const bool b_broken = ( (*pp_block)->i_flags&BLOCK_FLAG_CORRUPTED ) != 0;
         if( b_broken )



More information about the vlc-commits mailing list