X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fmux%2Fasf.c;h=3ecd0de7ea5c8b39e0aef5ad8982d4bc1f3d1bcf;hb=c60652e38ac6afd74bd8225e9dae5406f13aaa4f;hp=40dc0fd43b9d1dd9badc2ff603a6c1a296e8d73e;hpb=a9d0016e1b6a110b4b84006a78c669705459410b;p=vlc diff --git a/modules/mux/asf.c b/modules/mux/asf.c index 40dc0fd43b..3ecd0de7ea 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 ); @@ -537,6 +536,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input ) { tk->psz_name = "Windows Media Video 9"; tk->i_fourcc = VLC_FOURCC( 'W', 'M', 'V', '3' ); + tk->b_extended = true; } else if( p_input->p_fmt->i_codec == VLC_CODEC_VC1 ) { @@ -816,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] ); }