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
d06ef508
Commit
d06ef508
authored
Feb 08, 2005
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ts: correct use of descriptor 0x5 (for ac3 and lpcm too).
parent
e3a434cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
7 deletions
+39
-7
modules/demux/ts.c
modules/demux/ts.c
+39
-7
No files found.
modules/demux/ts.c
View file @
d06ef508
...
@@ -2183,17 +2183,49 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
...
@@ -2183,17 +2183,49 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
msg_Dbg
(
p_demux
,
" * es pid=%d type=%d dr->i_tag=0x%x"
,
msg_Dbg
(
p_demux
,
" * es pid=%d type=%d dr->i_tag=0x%x"
,
p_es
->
i_pid
,
p_es
->
i_type
,
p_dr
->
i_tag
);
p_es
->
i_pid
,
p_es
->
i_type
,
p_dr
->
i_tag
);
if
(
p_dr
->
i_tag
==
0x
6a
)
if
(
p_dr
->
i_tag
==
0x
05
)
{
{
/* Registration Descriptor */
if
(
p_dr
->
i_length
!=
4
)
{
msg_Warn
(
p_demux
,
"invalid Registration Descriptor"
);
}
else
{
if
(
!
memcmp
(
p_dr
->
p_data
,
"AC-3"
,
4
)
)
{
/* ATSC with stream_type 0x81 (but this descriptor
* is then not mandatory */
pid
->
es
->
fmt
.
i_cat
=
AUDIO_ES
;
pid
->
es
->
fmt
.
i_cat
=
AUDIO_ES
;
pid
->
es
->
fmt
.
i_codec
=
VLC_FOURCC
(
'a'
,
'5'
,
'2'
,
' '
);
pid
->
es
->
fmt
.
i_codec
=
VLC_FOURCC
(
'a'
,
'5'
,
'2'
,
' '
);
}
}
else
if
(
p_dr
->
i_tag
==
0x05
)
else
if
(
!
memcmp
(
p_dr
->
p_data
,
"DTS1"
,
4
)
||
!
memcmp
(
p_dr
->
p_data
,
"DTS2"
,
4
)
||
!
memcmp
(
p_dr
->
p_data
,
"DTS3"
,
4
)
)
{
{
/*registration descriptor(ETSI TS 101 154 Annex F)*/
pid
->
es
->
fmt
.
i_cat
=
AUDIO_ES
;
pid
->
es
->
fmt
.
i_codec
=
VLC_FOURCC
(
'd'
,
't'
,
's'
,
' '
);
}
else
if
(
!
memcmp
(
p_dr
->
p_data
,
"BSSD"
,
4
)
)
{
pid
->
es
->
fmt
.
i_cat
=
AUDIO_ES
;
pid
->
es
->
fmt
.
i_codec
=
VLC_FOURCC
(
'l'
,
'p'
,
'c'
,
'm'
);
}
else
{
msg_Warn
(
p_demux
,
"unknown Registration Descriptor (%4.4s)"
,
p_dr
->
p_data
);
}
}
/* DTS registration descriptor (ETSI TS 101 154 Annex F) */
}
else
if
(
p_dr
->
i_tag
==
0x6a
)
{
/* DVB with stream_type 0x06 */
pid
->
es
->
fmt
.
i_cat
=
AUDIO_ES
;
pid
->
es
->
fmt
.
i_cat
=
AUDIO_ES
;
pid
->
es
->
fmt
.
i_codec
=
VLC_FOURCC
(
'
d'
,
't'
,
's
'
,
' '
);
pid
->
es
->
fmt
.
i_codec
=
VLC_FOURCC
(
'
a'
,
'5'
,
'2
'
,
' '
);
}
}
else
if
(
p_dr
->
i_tag
==
0x73
)
else
if
(
p_dr
->
i_tag
==
0x73
)
{
{
...
...
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