Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
6ec025c7
Commit
6ec025c7
authored
Apr 29, 2009
by
Laurent Aimar
Browse files
"Header Extension" is mandatory in asf.
parent
b5ef9cbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/mux/asf.c
View file @
6ec025c7
...
...
@@ -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
;
if
(
p_sys
->
b_asf_http
)
...
...
@@ -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 */
/* 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_guid_reserved_1
);
bo_addle_u16
(
&
bo
,
6
);
bo_addle_u32
(
&
bo
,
i_header_ext_size
-
46
);
}
bo_add_guid
(
&
bo
,
&
asf_object_header_extension_guid
);
bo_addle_u64
(
&
bo
,
i_header_ext_size
);
bo_add_guid
(
&
bo
,
&
asf_guid_reserved_1
);
bo_addle_u16
(
&
bo
,
6
);
bo_addle_u32
(
&
bo
,
i_header_ext_size
-
46
);
/* metadata object (part of header extension) */
if
(
i_cm_size
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment