[vlc-commits] aes3: Add unlikely()
Hugo Beauzée-Luyssen
git at videolan.org
Mon Apr 16 10:43:04 CEST 2012
vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Apr 12 14:33:22 2012 +0200| [8722fe58e67aef0f204fdbc31deac68afe038d2d] | committer: Hugo Beauzée-Luyssen
aes3: Add unlikely()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8722fe58e67aef0f204fdbc31deac68afe038d2d
---
modules/codec/aes3.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/codec/aes3.c b/modules/codec/aes3.c
index 9cd9a2b..c8a1942 100644
--- a/modules/codec/aes3.c
+++ b/modules/codec/aes3.c
@@ -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 */
More information about the vlc-commits
mailing list