set_shortname( "ASF" )
set_capability( "sout mux", 5 )
- add_shortcut( "asf" )
- add_shortcut( "asfh" )
+ add_shortcut( "asf", "asfh" )
set_callbacks( Open, Close )
add_string( SOUT_CFG_PREFIX "title", "", NULL, TITLE_TEXT, TITLE_LONGTEXT,
{
sout_mux_t *p_mux = (sout_mux_t*)p_this;
sout_mux_sys_t *p_sys;
- int i;
msg_Dbg( p_mux, "asf muxer opened" );
config_ChainParse( p_mux, SOUT_CFG_PREFIX, ppsz_sout_options, p_mux->p_cfg );
{
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 )
{
tk->i_id = vlc_array_index_of_item( p_sys->p_tracks, tk ) + 1;
- p_sys->b_write_header = true;
+ if( p_sys->b_asf_http )
+ p_sys->b_write_header = true;
return VLC_SUCCESS;
}
}
}
- vlc_array_remove( p_sys->p_tracks, vlc_array_index_of_item( p_sys->p_tracks, (void *)tk ) );
-
-
- p_sys->b_write_header = true;
+ if( p_sys->b_asf_http )
+ {
+ vlc_array_remove( p_sys->p_tracks, vlc_array_index_of_item( p_sys->p_tracks, (void *)tk ) );
+ p_sys->b_write_header = true;
+ }
return VLC_SUCCESS;
}
p_track->fmt.video.i_sar_den != 0 )
{
i_cm_size = 26 + 2 * (16 + 2 * sizeof("AspectRatio?"));
- break;
}
if( p_track->b_extended )
i_header_ext_size += 88;
if( i_cm_size )
{
unsigned int i_dst_num, i_dst_den;
- asf_track_t *tk;
- tk=NULL;
+ asf_track_t *tk = NULL;
for( i = 0; i < vlc_array_count( p_sys->p_tracks ); i++ )
{
tk = vlc_array_item_at_index( p_sys->p_tracks, i );
- if( tk->i_cat == VIDEO_ES ) break;
+ if( tk->i_cat == VIDEO_ES &&
+ tk->fmt.video.i_sar_num != 0 &&
+ tk->fmt.video.i_sar_den != 0 )
+ break;
}
assert( tk != NULL );