]> git.sesse.net Git - vlc/blobdiff - modules/packetizer/mpeg4audio.c
macosx: Fix addNode:.
[vlc] / modules / packetizer / mpeg4audio.c
index ee06b7c3b693c325f0d54334012875d5187f6765..9a926acdd28123909cb58d7fdf12cb4f2ca4876e 100644 (file)
@@ -30,7 +30,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_aout.h>
 #include <vlc_codec.h>
@@ -42,6 +42,8 @@
 
 #include "vlc_block_helper.h"
 
+#include <assert.h>
+
 /* AAC Config in ES:
  *
  * AudioObjectType          5 bits
@@ -180,7 +182,7 @@ static block_t *PacketizeStreamBlock( decoder_t *, block_t ** );
 vlc_module_begin();
     set_category( CAT_SOUT );
     set_subcategory( SUBCAT_SOUT_PACKETIZER );
-    set_description( _("MPEG4 audio packetizer") );
+    set_description( N_("MPEG4 audio packetizer") );
     set_capability( "packetizer", 50 );
     set_callbacks( OpenPacketizer, ClosePacketizer );
 vlc_module_end();
@@ -201,10 +203,7 @@ static int OpenPacketizer( vlc_object_t *p_this )
     /* Allocate the memory needed to store the decoder's structure */
     if( ( p_dec->p_sys = p_sys =
           (decoder_sys_t *)malloc(sizeof(decoder_sys_t)) ) == NULL )
-    {
-        msg_Err( p_dec, "out of memory" );
-        return VLC_EGENERIC;
-    }
+        return VLC_ENOMEM;
 
     /* Misc init */
     p_sys->i_state = STATE_NOSYNC;
@@ -828,7 +827,7 @@ static int LOASParse( decoder_t *p_dec, uint8_t *p_buffer, int i_buffer )
     if( !p_sys->b_latm_cfg )
         return 0;
 
-    /* FIXME do we need to split the subframe into independant packet ? */
+    /* FIXME do we need to split the subframe into independent packet ? */
     if( p_sys->latm.i_sub_frames > 1 )
         msg_Err( p_dec, "latm sub frames not yet supported, please send a sample" );