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
8736551f
Commit
8736551f
authored
Aug 10, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PS: detect
AC-3
from E-
AC-3
We must look inside the packet to see this info
parent
79bc1641
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
modules/demux/ps.h
modules/demux/ps.h
+15
-1
No files found.
modules/demux/ps.h
View file @
8736551f
...
...
@@ -93,7 +93,21 @@ static inline int ps_track_fill( ps_track_t *tk, ps_psm_t *p_psm, int i_id, bloc
else
if
(
(
i_id
&
0xf8
)
==
0x80
||
/* 0x80 -> 0x87 */
(
i_id
&
0xf0
)
==
0xc0
)
/* 0xc0 -> 0xcf AC-3, Can also be DD+/E-AC3 in evob */
{
es_format_Init
(
&
tk
->
fmt
,
AUDIO_ES
,
VLC_CODEC_A52
);
bool
b_eac3
=
false
;
if
(
(
i_id
&
0xf0
)
==
0xc0
&&
p_pkt
&&
p_pkt
->
i_buffer
>
8
)
{
unsigned
i_start
=
9
+
p_pkt
->
p_buffer
[
8
];
/* AC-3 marking, see vlc_a52_header_Parse */
if
(
p_pkt
->
p_buffer
[
i_start
+
4
]
==
0x0b
||
p_pkt
->
p_buffer
[
i_start
+
5
]
==
0x77
)
{
int
bsid
=
p_pkt
->
p_buffer
[
i_start
+
9
]
>>
3
;
if
(
bsid
>
10
)
b_eac3
=
true
;
}
}
es_format_Init
(
&
tk
->
fmt
,
AUDIO_ES
,
b_eac3
?
VLC_CODEC_EAC3
:
VLC_CODEC_A52
);
tk
->
i_skip
=
4
;
}
else
if
(
(
i_id
&
0xfc
)
==
0x00
)
/* 0x00 -> 0x03 */
...
...
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