Commit 6ec025c7 authored by Laurent Aimar's avatar Laurent Aimar

"Header Extension" is mandatory in asf.

parent b5ef9cbb
...@@ -910,7 +910,7 @@ static block_t *asf_header_create( sout_mux_t *p_mux, bool b_broadcast ) ...@@ -910,7 +910,7 @@ static block_t *asf_header_create( sout_mux_t *p_mux, bool b_broadcast )
} }
} }
i_header_ext_size = i_cm_size ? i_cm_size + 46 : 0; i_header_ext_size = i_cm_size ? i_cm_size + 46 : 46;
i_size += i_ci_size + i_cd_size + i_header_ext_size ; i_size += i_ci_size + i_cd_size + i_header_ext_size ;
if( p_sys->b_asf_http ) if( p_sys->b_asf_http )
...@@ -952,14 +952,11 @@ static block_t *asf_header_create( sout_mux_t *p_mux, bool b_broadcast ) ...@@ -952,14 +952,11 @@ static block_t *asf_header_create( sout_mux_t *p_mux, bool b_broadcast )
bo_addle_u32( &bo, p_sys->i_bitrate ); /* maxbitrate */ bo_addle_u32( &bo, p_sys->i_bitrate ); /* maxbitrate */
/* header extension */ /* header extension */
if( i_header_ext_size ) bo_add_guid ( &bo, &asf_object_header_extension_guid );
{ bo_addle_u64( &bo, i_header_ext_size );
bo_add_guid ( &bo, &asf_object_header_extension_guid ); bo_add_guid ( &bo, &asf_guid_reserved_1 );
bo_addle_u64( &bo, i_header_ext_size ); bo_addle_u16( &bo, 6 );
bo_add_guid ( &bo, &asf_guid_reserved_1 ); bo_addle_u32( &bo, i_header_ext_size - 46 );
bo_addle_u16( &bo, 6 );
bo_addle_u32( &bo, i_header_ext_size - 46 );
}
/* metadata object (part of header extension) */ /* metadata object (part of header extension) */
if( i_cm_size ) if( i_cm_size )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment