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
f38f9dbc
Commit
f38f9dbc
authored
Jul 11, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check most demux_t.p_sys allocations
(cherry picked from commit 1cdbc7b6f2294024815f3d28128c8a7bf21156cb)
parent
7402eee9
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
8 deletions
+40
-8
modules/demux/cdg.c
modules/demux/cdg.c
+5
-1
modules/demux/flac.c
modules/demux/flac.c
+5
-1
modules/demux/mjpeg.c
modules/demux/mjpeg.c
+5
-1
modules/demux/nsv.c
modules/demux/nsv.c
+5
-1
modules/demux/pva.c
modules/demux/pva.c
+5
-1
modules/demux/ty.c
modules/demux/ty.c
+5
-1
modules/demux/vc1.c
modules/demux/vc1.c
+5
-1
modules/demux/xa.c
modules/demux/xa.c
+5
-1
No files found.
modules/demux/cdg.c
View file @
f38f9dbc
...
...
@@ -89,9 +89,13 @@ static int Open( vlc_object_t * p_this )
// return VLC_EGENERIC;
// }
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
unlikely
(
p_sys
==
NULL
)
)
return
VLC_ENOMEM
;
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
)
;
p_demux
->
p_sys
=
p_sys
;
/* */
es_format_Init
(
&
p_sys
->
fmt
,
VIDEO_ES
,
VLC_CODEC_CDG
);
...
...
modules/demux/flac.c
View file @
f38f9dbc
...
...
@@ -118,9 +118,13 @@ static int Open( vlc_object_t * p_this )
"continuing anyway"
);
}
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
unlikely
(
p_sys
==
NULL
)
)
return
VLC_ENOMEM
;
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
)
;
p_demux
->
p_sys
=
p_sys
;
p_sys
->
b_start
=
true
;
p_sys
->
p_meta
=
NULL
;
memset
(
&
p_sys
->
replay_gain
,
0
,
sizeof
(
p_sys
->
replay_gain
)
);
...
...
modules/demux/mjpeg.c
View file @
f38f9dbc
...
...
@@ -305,8 +305,12 @@ static int Open( vlc_object_t * p_this )
bool
b_matched
=
false
;
float
f_fps
;
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
unlikely
(
p_sys
==
NULL
)
)
return
VLC_ENOMEM
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
)
;
p_demux
->
p_sys
=
p_sys
;
p_sys
->
p_es
=
NULL
;
p_sys
->
i_time
=
0
;
p_sys
->
i_level
=
0
;
...
...
modules/demux/nsv.c
View file @
f38f9dbc
...
...
@@ -104,10 +104,14 @@ static int Open( vlc_object_t *p_this )
return
VLC_EGENERIC
;
}
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
unlikely
(
p_sys
==
NULL
)
)
return
VLC_ENOMEM
;
/* Fill p_demux field */
p_demux
->
p_sys
=
p_sys
;
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
es_format_Init
(
&
p_sys
->
fmt_audio
,
AUDIO_ES
,
0
);
p_sys
->
p_audio
=
NULL
;
...
...
modules/demux/pva.c
View file @
f38f9dbc
...
...
@@ -92,10 +92,14 @@ static int Open( vlc_object_t *p_this )
return
VLC_EGENERIC
;
}
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
unlikely
(
p_sys
==
NULL
)
)
return
VLC_ENOMEM
;
/* Fill p_demux field */
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
)
;
p_demux
->
p_sys
=
p_sys
;
/* Register one audio and one video stream */
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_MPGA
);
...
...
modules/demux/ty.c
View file @
f38f9dbc
...
...
@@ -319,12 +319,16 @@ static int Open(vlc_object_t *p_this)
/* at this point, we assume we have a valid TY stream */
msg_Dbg
(
p_demux
,
"valid TY stream detected"
);
p_sys
=
malloc
(
sizeof
(
demux_sys_t
));
if
(
unlikely
(
p_sys
==
NULL
)
)
return
VLC_ENOMEM
;
/* Set exported functions */
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
/* create our structure that will hold all data */
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
))
;
p_demux
->
p_sys
=
p_sys
;
memset
(
p_sys
,
0
,
sizeof
(
demux_sys_t
));
/* set up our struct (most were zero'd out with the memset above) */
...
...
modules/demux/vc1.c
View file @
f38f9dbc
...
...
@@ -96,9 +96,13 @@ static int Open( vlc_object_t * p_this )
"continuing anyway"
);
}
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
unlikely
(
p_sys
==
NULL
)
)
return
VLC_ENOMEM
;
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
)
;
p_demux
->
p_sys
=
p_sys
;
p_sys
->
p_es
=
NULL
;
p_sys
->
i_dts
=
0
;
p_sys
->
f_fps
=
var_CreateGetFloat
(
p_demux
,
"vc1-fps"
);
...
...
modules/demux/xa.c
View file @
f38f9dbc
...
...
@@ -102,9 +102,13 @@ static int Open( vlc_object_t * p_this )
||
(
GetWLE
(
&
p_xa
.
wBitsPerSample
)
!=
16
)
)
return
VLC_EGENERIC
;
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
unlikely
(
p_sys
==
NULL
)
)
return
VLC_ENOMEM
;
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
)
;
p_demux
->
p_sys
=
p_sys
;
p_sys
->
p_es
=
NULL
;
/* skip XA header -- cannot fail */
...
...
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