[vlc-commits] commit: ASF mux: reduce variable scope (Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Tue Aug 17 15:58:56 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Aug 17 13:08:11 2010 +0200| [bf97d43aee0be50f37e21e316d1099c7a45a4637] | committer: Jean-Baptiste Kempf
ASF mux: reduce variable scope
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf97d43aee0be50f37e21e316d1099c7a45a4637
---
modules/mux/asf.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/mux/asf.c b/modules/mux/asf.c
index 2917d7c..3ecd0de 100644
--- a/modules/mux/asf.c
+++ b/modules/mux/asf.c
@@ -255,7 +255,6 @@ static void Close( vlc_object_t * p_this )
sout_mux_t *p_mux = (sout_mux_t*)p_this;
sout_mux_sys_t *p_sys = p_mux->p_sys;
block_t *out;
- int i;
msg_Dbg( p_mux, "Asf muxer closed" );
@@ -278,7 +277,7 @@ static void Close( vlc_object_t * p_this )
}
- for( i = 0; i < vlc_array_count( p_sys->p_tracks ); i++ )
+ for( int i = 0; i < vlc_array_count( p_sys->p_tracks ); i++ )
{
asf_track_t *track = (asf_track_t *)vlc_array_item_at_index( p_sys->p_tracks, i );
free( track->p_extra );
@@ -817,11 +816,10 @@ static void bo_addle_str16_nosize( bo_t *bo, const char *str )
****************************************************************************/
static void bo_add_guid( bo_t *p_bo, const guid_t *id )
{
- int i;
bo_addle_u32( p_bo, id->Data1 );
bo_addle_u16( p_bo, id->Data2 );
bo_addle_u16( p_bo, id->Data3 );
- for( i = 0; i < 8; i++ )
+ for( int i = 0; i < 8; i++ )
{
bo_add_u8( p_bo, id->Data4[i] );
}
More information about the vlc-commits
mailing list