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
c6052ba0
Commit
c6052ba0
authored
Feb 16, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TS demux: PIDInit(): simplify
parent
87e0fe72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
25 deletions
+18
-25
modules/demux/ts.c
modules/demux/ts.c
+18
-25
No files found.
modules/demux/ts.c
View file @
c6052ba0
...
@@ -1305,36 +1305,29 @@ static void PIDInit( ts_pid_t *pid, bool b_psi, ts_psi_t *p_owner )
...
@@ -1305,36 +1305,29 @@ static void PIDInit( ts_pid_t *pid, bool b_psi, ts_psi_t *p_owner )
if
(
p_owner
)
if
(
p_owner
)
{
{
ts_prg_psi_t
*
prg
=
malloc
(
sizeof
(
ts_prg_psi_t
)
);
ts_prg_psi_t
*
prg
=
malloc
(
sizeof
(
ts_prg_psi_t
)
);
if
(
prg
)
if
(
!
prg
)
{
return
;
/* PMT */
/* PMT */
prg
->
i_version
=
-
1
;
prg
->
i_version
=
-
1
;
prg
->
i_number
=
-
1
;
prg
->
i_number
=
-
1
;
prg
->
i_pid_pcr
=
-
1
;
prg
->
i_pid_pcr
=
-
1
;
prg
->
i_pid_pmt
=
-
1
;
prg
->
i_pid_pmt
=
-
1
;
prg
->
i_pcr_value
=
-
1
;
prg
->
i_pcr_value
=
-
1
;
prg
->
iod
=
NULL
;
prg
->
iod
=
NULL
;
prg
->
handle
=
NULL
;
prg
->
handle
=
NULL
;
TAB_APPEND
(
pid
->
psi
->
i_prg
,
pid
->
psi
->
prg
,
prg
);
TAB_APPEND
(
pid
->
psi
->
i_prg
,
pid
->
psi
->
prg
,
prg
);
}
}
}
}
}
else
else
{
{
pid
->
psi
=
NULL
;
pid
->
psi
=
NULL
;
pid
->
es
=
malloc
(
sizeof
(
ts_es_t
)
);
pid
->
es
=
calloc
(
1
,
sizeof
(
ts_es_t
)
);
if
(
pid
->
es
)
if
(
!
pid
->
es
)
{
return
;
es_format_Init
(
&
pid
->
es
->
fmt
,
UNKNOWN_ES
,
0
);
pid
->
es
->
id
=
NULL
;
es_format_Init
(
&
pid
->
es
->
fmt
,
UNKNOWN_ES
,
0
);
pid
->
es
->
p_pes
=
NULL
;
pid
->
es
->
pp_last
=
&
pid
->
es
->
p_pes
;
pid
->
es
->
i_pes_size
=
0
;
pid
->
es
->
i_pes_gathered
=
0
;
pid
->
es
->
pp_last
=
&
pid
->
es
->
p_pes
;
pid
->
es
->
p_mpeg4desc
=
NULL
;
pid
->
es
->
b_gather
=
false
;
}
}
}
}
}
...
...
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