Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
Steve Lhomme
VLC
Commits
578cd1d8
Commit
578cd1d8
authored
Mar 09, 2017
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ps: seek directly on cdxa sectors
parent
be0b48f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
modules/demux/mpeg/ps.c
modules/demux/mpeg/ps.c
+13
-1
No files found.
modules/demux/mpeg/ps.c
View file @
578cd1d8
...
...
@@ -48,6 +48,8 @@
#define PS_PACKET_PROBE 3
#define CDXA_HEADER_SIZE 44
#define CDXA_SECTOR_SIZE 2352
#define CDXA_SECTOR_HEADER_SIZE 24
/*****************************************************************************
* Module descriptor
...
...
@@ -648,7 +650,17 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
p_sys
->
i_current_pts
=
0
;
p_sys
->
i_last_scr
=
-
1
;
i_ret
=
vlc_stream_Seek
(
p_demux
->
s
,
p_sys
->
i_start_byte
+
(
int64_t
)(
i64
*
f
)
);
if
(
p_sys
->
format
==
CDXA_PS
)
{
i64
=
(
int64_t
)(
i64
*
f
);
/* Align to sector payload */
i64
=
p_sys
->
i_start_byte
+
i64
-
(
i64
%
CDXA_SECTOR_SIZE
)
+
CDXA_SECTOR_HEADER_SIZE
;
}
else
{
i64
=
p_sys
->
i_start_byte
+
(
int64_t
)(
i64
*
f
);
}
i_ret
=
vlc_stream_Seek
(
p_demux
->
s
,
i64
);
if
(
i_ret
==
VLC_SUCCESS
)
{
NotifyDiscontinuity
(
p_sys
->
tk
,
p_demux
->
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