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
dd4ad1f9
Commit
dd4ad1f9
authored
Jun 07, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ts: BSSD: probe secondary PMT descriptor (fix #2939)
parent
e800ac9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/demux/ts.c
modules/demux/ts.c
+5
-4
No files found.
modules/demux/ts.c
View file @
dd4ad1f9
...
@@ -3645,6 +3645,7 @@ static void PMTSetupEs0x06( demux_t *p_demux, ts_pid_t *pid,
...
@@ -3645,6 +3645,7 @@ static void PMTSetupEs0x06( demux_t *p_demux, ts_pid_t *pid,
const
dvbpsi_pmt_es_t
*
p_es
)
const
dvbpsi_pmt_es_t
*
p_es
)
{
{
es_format_t
*
p_fmt
=
&
pid
->
es
->
fmt
;
es_format_t
*
p_fmt
=
&
pid
->
es
->
fmt
;
dvbpsi_descriptor_t
*
p_subs_dr
=
PMTEsFindDescriptor
(
p_es
,
0x59
);
if
(
PMTEsHasRegistration
(
p_demux
,
p_es
,
"AC-3"
)
||
if
(
PMTEsHasRegistration
(
p_demux
,
p_es
,
"AC-3"
)
||
PMTEsFindDescriptor
(
p_es
,
0x6a
)
||
PMTEsFindDescriptor
(
p_es
,
0x6a
)
||
...
@@ -3668,8 +3669,10 @@ static void PMTSetupEs0x06( demux_t *p_demux, ts_pid_t *pid,
...
@@ -3668,8 +3669,10 @@ static void PMTSetupEs0x06( demux_t *p_demux, ts_pid_t *pid,
p_fmt
->
i_cat
=
AUDIO_ES
;
p_fmt
->
i_cat
=
AUDIO_ES
;
p_fmt
->
i_codec
=
VLC_CODEC_DTS
;
p_fmt
->
i_codec
=
VLC_CODEC_DTS
;
}
}
else
if
(
PMTEsHasRegistration
(
p_demux
,
p_es
,
"BSSD"
)
)
else
if
(
PMTEsHasRegistration
(
p_demux
,
p_es
,
"BSSD"
)
&&
!
p_subs_dr
)
{
{
/* BSSD is AES3 DATA, but could also be subtitles
* we need to check for secondary descriptor then s*/
p_fmt
->
i_cat
=
AUDIO_ES
;
p_fmt
->
i_cat
=
AUDIO_ES
;
p_fmt
->
b_packetized
=
true
;
p_fmt
->
b_packetized
=
true
;
p_fmt
->
i_codec
=
VLC_CODEC_302M
;
p_fmt
->
i_codec
=
VLC_CODEC_302M
;
...
@@ -3682,10 +3685,8 @@ static void PMTSetupEs0x06( demux_t *p_demux, ts_pid_t *pid,
...
@@ -3682,10 +3685,8 @@ static void PMTSetupEs0x06( demux_t *p_demux, ts_pid_t *pid,
else
else
{
{
/* Subtitle/Teletext/VBI fallbacks */
/* Subtitle/Teletext/VBI fallbacks */
dvbpsi_descriptor_t
*
p_dr
=
PMTEsFindDescriptor
(
p_es
,
0x59
);
dvbpsi_subtitling_dr_t
*
p_sub
;
dvbpsi_subtitling_dr_t
*
p_sub
;
if
(
p_
dr
&&
(
p_sub
=
dvbpsi_DecodeSubtitlingDr
(
p
_dr
)
)
)
if
(
p_
subs_dr
&&
(
p_sub
=
dvbpsi_DecodeSubtitlingDr
(
p_subs
_dr
)
)
)
{
{
for
(
int
i
=
0
;
i
<
p_sub
->
i_subtitles_number
;
i
++
)
for
(
int
i
=
0
;
i
<
p_sub
->
i_subtitles_number
;
i
++
)
{
{
...
...
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