Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
3e90cf53
Commit
3e90cf53
authored
May 16, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: asf: set preroll point after indexless seek
parent
cdcd6c9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+6
-0
No files found.
modules/demux/asf/asf.c
View file @
3e90cf53
...
...
@@ -73,6 +73,7 @@ static int Control( demux_t *, int i_query, va_list args );
static
void
FlushRemainingPackets
(
demux_t
*
p_demux
);
#define MAX_ASF_TRACKS 128
#define ASF_PREROLL_FROM_CURRENT -1
typedef
struct
{
...
...
@@ -363,6 +364,7 @@ static void SeekPrepare( demux_t *p_demux )
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
p_sys
->
i_time
=
VLC_TS_INVALID
;
p_sys
->
i_preroll_start
=
ASF_PREROLL_FROM_CURRENT
;
for
(
int
i
=
0
;
i
<
MAX_ASF_TRACKS
;
i
++
)
{
asf_track_t
*
tk
=
p_sys
->
track
[
i
];
...
...
@@ -761,6 +763,10 @@ static int DemuxPayload(demux_t *p_demux, struct asf_packet_t *pkt, int i_payloa
uint32_t
i_temp_payload_length
=
0
;
p_sys
->
p_fp
->
i_preroll
=
__MIN
(
p_sys
->
p_fp
->
i_preroll
,
INT64_MAX
);
/* First packet, in case we do not have index to guess preroll start time */
if
(
p_sys
->
i_preroll_start
==
ASF_PREROLL_FROM_CURRENT
)
p_sys
->
i_preroll_start
=
pkt
->
send_time
*
1000
;
/* Non compressed */
if
(
i_replicated_data_length
>
7
)
// should be at least 8 bytes
{
...
...
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