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
362eb374
Commit
362eb374
authored
Apr 13, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ts: replace if/else with switch
parent
34d9105e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
28 deletions
+25
-28
modules/demux/ts.c
modules/demux/ts.c
+25
-28
No files found.
modules/demux/ts.c
View file @
362eb374
...
@@ -4084,39 +4084,36 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_pmt )
...
@@ -4084,39 +4084,36 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_pmt )
pid
->
i_pid
=
p_es
->
i_pid
;
pid
->
i_pid
=
p_es
->
i_pid
;
pid
->
b_seen
=
p_sys
->
pid
[
p_es
->
i_pid
].
b_seen
;
pid
->
b_seen
=
p_sys
->
pid
[
p_es
->
i_pid
].
b_seen
;
if
(
p_es
->
i_type
==
0x10
||
p_es
->
i_type
==
0x11
||
switch
(
p_es
->
i_type
)
p_es
->
i_type
==
0x12
||
p_es
->
i_type
==
0x0f
)
{
{
case
0x10
:
case
0x11
:
case
0x12
:
case
0x0f
:
PMTSetupEsISO14496
(
p_demux
,
pid
,
prg
,
p_es
);
PMTSetupEsISO14496
(
p_demux
,
pid
,
prg
,
p_es
);
}
break
;
else
if
(
p_es
->
i_type
==
0x06
)
case
0x06
:
{
PMTSetupEs0x06
(
p_demux
,
pid
,
p_es
);
PMTSetupEs0x06
(
p_demux
,
pid
,
p_es
);
}
break
;
else
if
(
p_es
->
i_type
==
0xEA
)
case
0x83
:
{
PMTSetupEs0xEA
(
p_demux
,
pid
,
p_es
);
}
else
if
(
p_es
->
i_type
==
0xd1
)
{
PMTSetupEs0xD1
(
p_demux
,
pid
,
p_es
);
}
else
if
(
p_es
->
i_type
==
0xa0
)
{
PMTSetupEs0xA0
(
p_demux
,
pid
,
p_es
);
}
else
if
(
p_es
->
i_type
==
0x83
)
{
/* LPCM (audio) */
/* LPCM (audio) */
PMTSetupEs0x83
(
p_pmt
,
pid
);
PMTSetupEs0x83
(
p_pmt
,
pid
);
}
break
;
else
if
(
registration_type
==
TS_REGISTRATION_HDMV
)
case
0xa0
:
{
PMTSetupEs0xA0
(
p_demux
,
pid
,
p_es
);
PMTSetupEsHDMV
(
pid
,
p_es
);
break
;
}
case
0xd1
:
else
if
(
p_es
->
i_type
>=
0x80
)
PMTSetupEs0xD1
(
p_demux
,
pid
,
p_es
);
{
break
;
PMTSetupEsRegistration
(
p_demux
,
pid
,
p_es
);
case
0xEA
:
PMTSetupEs0xEA
(
p_demux
,
pid
,
p_es
);
break
;
default:
if
(
registration_type
==
TS_REGISTRATION_HDMV
)
PMTSetupEsHDMV
(
pid
,
p_es
);
else
if
(
p_es
->
i_type
>=
0x80
)
PMTSetupEsRegistration
(
p_demux
,
pid
,
p_es
);
break
;
}
}
if
(
pid
->
es
->
fmt
.
i_cat
==
AUDIO_ES
||
if
(
pid
->
es
->
fmt
.
i_cat
==
AUDIO_ES
||
...
...
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