Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
69b32f59
Commit
69b32f59
authored
May 26, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not malloc(0) - to make valgrind not report 0 byte leaks
parent
44e62217
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/demux/ts.c
modules/demux/ts.c
+2
-1
No files found.
modules/demux/ts.c
View file @
69b32f59
...
...
@@ -3237,7 +3237,8 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
pid
->
es
->
fmt
.
i_cat
=
SPU_ES
;
pid
->
es
->
fmt
.
i_codec
=
VLC_FOURCC
(
't'
,
'e'
,
'l'
,
'x'
);
pid
->
es
->
fmt
.
i_extra
=
p_dr
->
i_length
;
pid
->
es
->
fmt
.
p_extra
=
malloc
(
p_dr
->
i_length
);
pid
->
es
->
fmt
.
p_extra
=
p_dr
->
i_length
?
malloc
(
p_dr
->
i_length
)
:
NULL
;
if
(
pid
->
es
->
fmt
.
p_extra
)
memcpy
(
pid
->
es
->
fmt
.
p_extra
,
p_dr
->
p_data
,
p_dr
->
i_length
);
...
...
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