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
bd6e2da8
Commit
bd6e2da8
authored
Jul 19, 2013
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sizeof mismatch (cid #1049614 and #1049613-12)
parent
3a62db5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
modules/demux/mkv/mkv.cpp
modules/demux/mkv/mkv.cpp
+1
-1
modules/demux/ogg.c
modules/demux/ogg.c
+2
-2
No files found.
modules/demux/mkv/mkv.cpp
View file @
bd6e2da8
...
...
@@ -354,7 +354,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
int
*
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
p_sys
->
titles
.
size
();
*
ppp_title
=
(
input_title_t
**
)
malloc
(
sizeof
(
input_title_t
*
*
)
*
p_sys
->
titles
.
size
()
);
*
ppp_title
=
(
input_title_t
**
)
malloc
(
sizeof
(
input_title_t
*
)
*
p_sys
->
titles
.
size
()
);
for
(
size_t
i
=
0
;
i
<
p_sys
->
titles
.
size
();
i
++
)
(
*
ppp_title
)[
i
]
=
vlc_input_title_Duplicate
(
p_sys
->
titles
[
i
]
);
...
...
modules/demux/ogg.c
View file @
bd6e2da8
...
...
@@ -505,7 +505,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return
VLC_EGENERIC
;
*
pi_int
=
p_sys
->
i_attachments
;
*
ppp_attach
=
xmalloc
(
sizeof
(
input_attachment_t
*
*
)
*
p_sys
->
i_attachments
);
*
ppp_attach
=
xmalloc
(
sizeof
(
input_attachment_t
*
)
*
p_sys
->
i_attachments
);
for
(
int
i
=
0
;
i
<
p_sys
->
i_attachments
;
i
++
)
(
*
ppp_attach
)[
i
]
=
vlc_input_attachment_Duplicate
(
p_sys
->
attachments
[
i
]
);
return
VLC_SUCCESS
;
...
...
@@ -541,7 +541,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if
(
p_sys
->
i_seekpoints
>
0
)
{
*
pi_int
=
1
;
*
ppp_title
=
malloc
(
sizeof
(
input_title_t
*
*
)
);
*
ppp_title
=
malloc
(
sizeof
(
input_title_t
*
)
);
input_title_t
*
p_title
=
(
*
ppp_title
)[
0
]
=
vlc_input_title_New
();
for
(
int
i
=
0
;
i
<
p_sys
->
i_seekpoints
;
i
++
)
{
...
...
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