]> git.sesse.net Git - vlc/blobdiff - modules/mux/mpeg/pes.c
TS mux: use var_* helpers
[vlc] / modules / mux / mpeg / pes.c
index 597b577024be1a33cb476b2942460cac9a3d9c94..5cbb2da439c0192704d2a6178030f4f2f7820931 100644 (file)
@@ -354,7 +354,7 @@ int  EStoPES ( sout_instance_t *p_sout, block_t **pp_pes, block_t *p_es,
 
     if( p_fmt->i_codec == VLC_CODEC_H264 )
     {
-        int offset=2;
+        unsigned offset=2;
         while(offset < p_es->i_buffer )
         {
             if( p_es->p_buffer[offset-2] == 0 &&
@@ -387,10 +387,6 @@ int  EStoPES ( sout_instance_t *p_sout, block_t **pp_pes, block_t *p_es,
 
     *pp_pes = p_pes = NULL;
 
-#ifndef NDEBUG
-    memset( header, 0, 50 );
-#endif
-
     do
     {
         i_pes_payload = __MIN( i_size, i_max_pes_size );