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
a8379c11
Commit
a8379c11
authored
Aug 25, 2003
by
Laurent Aimar
Browse files
asf: fixed some headers errors.
parent
349d96d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/mux/asf.c
View file @
a8379c11
...
...
@@ -2,7 +2,7 @@
* asf.c
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: asf.c,v 1.
3
2003/08/25
01
:3
1
:2
5
fenrir Exp $
* $Id: asf.c,v 1.
4
2003/08/25
23
:3
9
:2
0
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -674,7 +674,7 @@ static sout_buffer_t *asf_header_create( sout_mux_t *p_mux,
/* header object */
bo_add_guid
(
&
bo
,
&
asf_object_header_guid
);
bo_addle_u64
(
&
bo
,
i_size
);
bo_addle_u32
(
&
bo
,
2
+
p_sys
->
i_track
);
bo_addle_u32
(
&
bo
,
2
+
p_sys
->
i_track
-
1
);
bo_add_u8
(
&
bo
,
1
);
bo_add_u8
(
&
bo
,
2
);
...
...
@@ -684,13 +684,13 @@ static sout_buffer_t *asf_header_create( sout_mux_t *p_mux,
bo_add_guid
(
&
bo
,
&
asf_object_file_properties_guid
);
bo_addle_u64
(
&
bo
,
104
);
bo_add_guid
(
&
bo
,
&
p_sys
->
fid
);
bo_addle_u64
(
&
bo
,
i_size
+
p_sys
->
i_packet_count
*
bo_addle_u64
(
&
bo
,
i_size
+
50
+
p_sys
->
i_packet_count
*
p_sys
->
i_packet_size
);
/* file size */
bo_addle_u64
(
&
bo
,
0
);
/* creation date */
bo_addle_u64
(
&
bo
,
p_sys
->
i_packet_count
);
bo_addle_u64
(
&
bo
,
b_broadcast
?
0xffffffffLL
:
p_sys
->
i_packet_count
);
bo_addle_u64
(
&
bo
,
i_duration
*
10
);
/* play duration (100ns) */
bo_addle_u64
(
&
bo
,
i_duration
*
10
);
/* send duration (100ns) */
bo_addle_u64
(
&
bo
,
10
000
);
/* preroll duration (ms) */
bo_addle_u64
(
&
bo
,
4
000
);
/* preroll duration (ms) */
bo_addle_u32
(
&
bo
,
b_broadcast
?
0x01
:
0x00
);
/* flags */
bo_addle_u32
(
&
bo
,
p_sys
->
i_packet_size
);
/* packet size min */
bo_addle_u32
(
&
bo
,
p_sys
->
i_packet_size
);
/* packet size max */
...
...
Write
Preview
Markdown
is supported
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