Browse Source

mux/avi.c: write '\0' rather than an uninitalized byte to output file.

Fixes one, but not all of valgrinds warnings relating to this
pull/2/head
Sigmund Augdal Helberg 20 years ago
parent
commit
d90d34c1d9
  1. 1
      modules/mux/avi.c

1
modules/mux/avi.c

@ -473,6 +473,7 @@ static int Mux ( sout_mux_t *p_mux )
if( p_data->i_buffer & 0x01 )
{
p_data = block_Realloc( p_data, 0, p_data->i_buffer + 1 );
p_data->p_buffer[ p_data->i_buffer - 1 ] = '\0';
}
p_sys->i_movi_size += p_data->i_buffer;

Loading…
Cancel
Save