]> git.sesse.net Git - vlc/commitdiff
aes3: Add unlikely()
authorHugo Beauzée-Luyssen <beauze.h@gmail.com>
Thu, 12 Apr 2012 12:33:22 +0000 (14:33 +0200)
committerHugo Beauzée-Luyssen <beauze.h@gmail.com>
Mon, 16 Apr 2012 08:42:26 +0000 (10:42 +0200)
modules/codec/aes3.c

index 9cd9a2bfe34799119c52a927c9660eaa5f869360..c8a1942f3c75cb23c68ee83aa8ce249c96815a29 100644 (file)
@@ -239,7 +239,7 @@ static int Open( decoder_t *p_dec, bool b_packetizer )
     /* Allocate the memory needed to store the decoder's structure */
     p_dec->p_sys = p_sys = malloc( sizeof(decoder_sys_t) );
 
-    if( !p_sys )
+    if( unlikely( !p_sys ) )
         return VLC_EGENERIC;
 
     /* Misc init */