]> git.sesse.net Git - vlc/commitdiff
* modules/mux/*: fixed block_Realloc() typo.
authorGildas Bazin <gbazin@videolan.org>
Wed, 7 Apr 2004 22:57:08 +0000 (22:57 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 7 Apr 2004 22:57:08 +0000 (22:57 +0000)
modules/mux/avi.c
modules/mux/mpeg/pes.c

index bdc33168ccb51e3f1cee6f4a8550562b7c2dcdda..cc264d42d003df014e0788ad96ca152c18f45637 100644 (file)
@@ -444,7 +444,7 @@ static int Mux      ( sout_mux_t *p_mux )
                                              p_sys->idx1.i_entry_max * sizeof( avi_idx1_entry_t ) );
             }
 
-            p_data = block_Realloc( p_data, 8, 0 );
+            p_data = block_Realloc( p_data, 8, p_data->i_buffer );
             if( p_data )
             {
                 SetFCC( p_data->p_buffer, p_stream->fcc );
index 63b0a4ebfe6add95a526e796147daad82ff66b0a..098a97ea454bcf1966fa55d29f642f029f7edcaa 100644 (file)
@@ -273,7 +273,7 @@ int E_( EStoPES )( sout_instance_t *p_sout,
 
         if( p_es )
         {
-            p_es = block_Realloc( p_es, i_pes_header, 0 );
+            p_es = block_Realloc( p_es, i_pes_header, p_es->i_buffer );
             /* reuse p_es for first frame */
             *pp_pes = p_pes = p_es;
             /* don't touch i_dts, i_pts, i_length as are already set :) */