Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
0ae64fba
Commit
0ae64fba
authored
Aug 19, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/mux/asf.c: use syncpoints + add an empty index object to make wmp happy about seeking.
parent
aa66ede8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
modules/mux/asf.c
modules/mux/asf.c
+19
-5
No files found.
modules/mux/asf.c
View file @
0ae64fba
...
...
@@ -739,8 +739,8 @@ static const guid_t asf_object_codec_comment_reserved_guid =
{
0x86D15241
,
0x311D
,
0x11D0
,
{
0xA3
,
0xA4
,
0x00
,
0xA0
,
0xC9
,
0x03
,
0x48
,
0xF6
}};
static
const
guid_t
asf_object_content_description_guid
=
{
0x75B22633
,
0x668E
,
0x11CF
,
{
0xa6
,
0xd9
,
0x00
,
0xaa
,
0x00
,
0x62
,
0xce
,
0x6c
}};
static
const
guid_t
asf_object_index
=
{
0x
b35b7d8c
,
0x7af1
,
0x4f66
,
{
0x94
,
0x9a
,
0x89
,
0x03
,
0x8e
,
0x82
,
0xc7
,
0x48
}};
static
const
guid_t
asf_object_index
_guid
=
{
0x
33000890
,
0xE5B1
,
0x11CF
,
{
0x89
,
0xF4
,
0x00
,
0xA0
,
0xC9
,
0x03
,
0x49
,
0xCB
}};
/****************************************************************************
* Misc
...
...
@@ -961,12 +961,14 @@ static block_t *asf_packet_create( sout_mux_t *p_mux,
/* add payload (header size = 17) */
i_payload
=
__MIN
(
i_data
-
i_pos
,
p_sys
->
i_packet_size
-
p_sys
->
i_pk_used
-
17
);
bo_add_u8
(
&
bo
,
0x80
|
tk
->
i_id
);
bo_add_u8
(
&
bo
,
!
(
data
->
i_flags
&
BLOCK_FLAG_TYPE_P
||
data
->
i_flags
&
BLOCK_FLAG_TYPE_B
)
?
0x80
|
tk
->
i_id
:
tk
->
i_id
);
bo_add_u8
(
&
bo
,
tk
->
i_sequence
);
bo_addle_u32
(
&
bo
,
i_pos
);
bo_add_u8
(
&
bo
,
0x08
);
/* flags */
bo_addle_u32
(
&
bo
,
i_data
);
bo_addle_u32
(
&
bo
,
(
data
->
i_dts
-
p_sys
->
i_dts_first
)
/
1000
-
bo_addle_u32
(
&
bo
,
(
data
->
i_dts
-
p_sys
->
i_dts_first
)
/
1000
+
p_sys
->
i_preroll_time
);
bo_addle_u16
(
&
bo
,
i_payload
);
bo_add_mem
(
&
bo
,
&
p_data
[
i_pos
],
i_payload
);
...
...
@@ -992,7 +994,7 @@ static block_t *asf_packet_create( sout_mux_t *p_mux,
bo_add_u8
(
&
bo
,
0x11
);
bo_add_u8
(
&
bo
,
0x5d
);
bo_addle_u16
(
&
bo
,
i_pad
);
bo_addle_u32
(
&
bo
,
(
p_sys
->
i_pk_dts
-
p_sys
->
i_dts_first
)
/
1000
-
bo_addle_u32
(
&
bo
,
(
p_sys
->
i_pk_dts
-
p_sys
->
i_dts_first
)
/
1000
+
p_sys
->
i_preroll_time
);
bo_addle_u16
(
&
bo
,
0
*
data
->
i_length
/
1000
);
bo_add_u8
(
&
bo
,
0x80
|
p_sys
->
i_pk_frame
);
...
...
@@ -1026,6 +1028,18 @@ static block_t *asf_stream_end_create( sout_mux_t *p_mux )
bo_init
(
&
bo
,
out
->
p_buffer
,
12
);
asf_chunk_add
(
&
bo
,
0x4524
,
0
,
0x00
,
p_sys
->
i_seq
++
);
}
else
{
/* Create index */
out
=
block_New
(
p_mux
,
56
);
bo_init
(
&
bo
,
out
->
p_buffer
,
56
);
bo_add_guid
(
&
bo
,
&
asf_object_index_guid
);
bo_addle_u64
(
&
bo
,
56
);
bo_add_guid
(
&
bo
,
&
p_sys
->
fid
);
bo_addle_u64
(
&
bo
,
10000000
);
bo_addle_u32
(
&
bo
,
5
);
bo_addle_u32
(
&
bo
,
0
);
}
return
out
;
}
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