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
91bf0f04
Commit
91bf0f04
authored
Jan 16, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
calloc( nb_elmnt, size ) instead of calloc( size, nb_elmnt )
parent
524810e6
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
10 deletions
+10
-10
modules/access/pvr.c
modules/access/pvr.c
+2
-2
modules/codec/quicktime.c
modules/codec/quicktime.c
+1
-1
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+1
-1
modules/demux/avi/libavi.c
modules/demux/avi/libavi.c
+3
-3
modules/misc/notify/growl.m
modules/misc/notify/growl.m
+1
-1
modules/video_output/opengllayer.m
modules/video_output/opengllayer.m
+1
-1
src/misc/objects.c
src/misc/objects.c
+1
-1
No files found.
modules/access/pvr.c
View file @
91bf0f04
...
...
@@ -433,8 +433,8 @@ static int ConfigureV4L2( access_t * p_access )
controls
.
reserved
[
0
]
=
0
;
controls
.
reserved
[
1
]
=
0
;
controls
.
count
=
0
;
controls
.
controls
=
calloc
(
sizeof
(
struct
v4l2_ext_control
)
,
MAX_V4L2_CTRLS
);
controls
.
controls
=
calloc
(
MAX_V4L2_CTRLS
,
sizeof
(
struct
v4l2_ext_control
)
);
if
(
controls
.
controls
==
NULL
)
return
VLC_ENOMEM
;
...
...
modules/codec/quicktime.c
View file @
91bf0f04
...
...
@@ -397,7 +397,7 @@ static int OpenAudio( decoder_t *p_dec )
/* get lock, avoid segfault */
vlc_mutex_lock
(
&
qt_mutex
);
p_sys
=
calloc
(
sizeof
(
decoder_sys_t
),
1
);
p_sys
=
calloc
(
1
,
sizeof
(
decoder_sys_t
)
);
p_dec
->
p_sys
=
p_sys
;
p_dec
->
pf_decode_audio
=
DecodeAudio
;
...
...
modules/demux/avi/avi.c
View file @
91bf0f04
...
...
@@ -584,7 +584,7 @@ static int Open( vlc_object_t * p_this )
{
const
uint8_t
*
p_pal
=
fmt
.
p_extra
;
fmt
.
video
.
p_palette
=
calloc
(
sizeof
(
video_palette_t
),
1
);
fmt
.
video
.
p_palette
=
calloc
(
1
,
sizeof
(
video_palette_t
)
);
fmt
.
video
.
p_palette
->
i_entries
=
__MIN
(
fmt
.
i_extra
/
4
,
256
);
for
(
int
i
=
0
;
i
<
fmt
.
video
.
p_palette
->
i_entries
;
i
++
)
...
...
modules/demux/avi/libavi.c
View file @
91bf0f04
...
...
@@ -513,7 +513,7 @@ static int AVI_ChunkRead_indx( stream_t *s, avi_chunk_t *p_chk )
i_count
=
__MIN
(
p_indx
->
i_entriesinuse
,
i_read
/
8
);
p_indx
->
i_entriesinuse
=
i_count
;
p_indx
->
idx
.
std
=
calloc
(
sizeof
(
indx_std_entry_t
),
i_count
);
p_indx
->
idx
.
std
=
calloc
(
i_count
,
sizeof
(
indx_std_entry_t
)
);
for
(
i
=
0
;
i
<
i_count
;
i
++
)
{
...
...
@@ -528,7 +528,7 @@ static int AVI_ChunkRead_indx( stream_t *s, avi_chunk_t *p_chk )
i_count
=
__MIN
(
p_indx
->
i_entriesinuse
,
i_read
/
12
);
p_indx
->
i_entriesinuse
=
i_count
;
p_indx
->
idx
.
field
=
calloc
(
sizeof
(
indx_field_entry_t
),
i_count
);
p_indx
->
idx
.
field
=
calloc
(
i_count
,
sizeof
(
indx_field_entry_t
)
);
for
(
i
=
0
;
i
<
i_count
;
i
++
)
{
AVI_READ4BYTES
(
p_indx
->
idx
.
field
[
i
].
i_offset
);
...
...
@@ -545,7 +545,7 @@ static int AVI_ChunkRead_indx( stream_t *s, avi_chunk_t *p_chk )
i_count
=
__MIN
(
p_indx
->
i_entriesinuse
,
i_read
/
16
);
p_indx
->
i_entriesinuse
=
i_count
;
p_indx
->
idx
.
super
=
calloc
(
sizeof
(
indx_super_entry_t
),
i_count
);
p_indx
->
idx
.
super
=
calloc
(
i_count
,
sizeof
(
indx_super_entry_t
)
);
for
(
i
=
0
;
i
<
i_count
;
i
++
)
{
...
...
modules/misc/notify/growl.m
View file @
91bf0f04
...
...
@@ -106,7 +106,7 @@ static int Open( vlc_object_t *p_this )
intf_thread_t *p_intf = (intf_thread_t *)p_this;
intf_sys_t *p_sys;
p_sys = p_intf->p_sys = calloc(
sizeof(intf_sys_t), 1
);
p_sys = p_intf->p_sys = calloc(
1, sizeof(intf_sys_t)
);
if( !p_sys )
return VLC_ENOMEM;
...
...
modules/video_output/opengllayer.m
View file @
91bf0f04
...
...
@@ -140,7 +140,7 @@ static int CreateVout( vlc_object_t *p_this )
char
*
psz
;
/* Allocate structure */
p_vout
->
p_sys
=
p_sys
=
calloc
(
sizeof
(
vout_sys_t
),
1
);
p_vout
->
p_sys
=
p_sys
=
calloc
(
1
,
sizeof
(
vout_sys_t
)
);
if
(
p_sys
==
NULL
)
return
VLC_EGENERIC
;
...
...
src/misc/objects.c
View file @
91bf0f04
...
...
@@ -141,7 +141,7 @@ void *__vlc_custom_create( vlc_object_t *p_this, size_t i_size,
p_new
->
i_flags
=
p_this
->
i_flags
&
(
OBJECT_FLAGS_NODBG
|
OBJECT_FLAGS_QUIET
|
OBJECT_FLAGS_NOINTERACT
);
p_priv
->
p_vars
=
calloc
(
sizeof
(
variable_t
),
16
);
p_priv
->
p_vars
=
calloc
(
16
,
sizeof
(
variable_t
)
);
if
(
!
p_priv
->
p_vars
)
{
...
...
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