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
1cdbc7b6
Commit
1cdbc7b6
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
parent
c1f0e3ce
Changes
8
Show 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 @
1cdbc7b6
...
...
@@ -86,9 +86,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 @
1cdbc7b6
...
...
@@ -119,9 +119,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 @
1cdbc7b6
...
...
@@ -303,8 +303,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 @
1cdbc7b6
...
...
@@ -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 @
1cdbc7b6
...
...
@@ -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 @
1cdbc7b6
...
...
@@ -318,12 +318,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 @
1cdbc7b6
...
...
@@ -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 @
1cdbc7b6
...
...
@@ -100,9 +100,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