Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
44b0edda
Commit
44b0edda
authored
Dec 31, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop some pointless void* return value casts from av_malloc() invocations.
parent
3a1867de
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
imgconvert.c
libavcodec/imgconvert.c
+1
-1
snow.c
libavcodec/snow.c
+3
-3
rmenc.c
libavformat/rmenc.c
+1
-1
colorspace-test.c
libswscale/colorspace-test.c
+2
-2
No files found.
libavcodec/imgconvert.c
View file @
44b0edda
...
@@ -1000,7 +1000,7 @@ static void deinterlace_bottom_field_inplace(uint8_t *src1, int src_wrap,
...
@@ -1000,7 +1000,7 @@ static void deinterlace_bottom_field_inplace(uint8_t *src1, int src_wrap,
uint8_t
*
src_m1
,
*
src_0
,
*
src_p1
,
*
src_p2
;
uint8_t
*
src_m1
,
*
src_0
,
*
src_p1
,
*
src_p2
;
int
y
;
int
y
;
uint8_t
*
buf
;
uint8_t
*
buf
;
buf
=
(
uint8_t
*
)
av_malloc
(
width
);
buf
=
av_malloc
(
width
);
src_m1
=
src1
;
src_m1
=
src1
;
memcpy
(
buf
,
src_m1
,
width
);
memcpy
(
buf
,
src_m1
,
width
);
...
...
libavcodec/snow.c
View file @
44b0edda
...
@@ -516,9 +516,9 @@ static void halfpel_interpol(SnowContext *s, uint8_t *halfpel[4][4], AVFrame *fr
...
@@ -516,9 +516,9 @@ static void halfpel_interpol(SnowContext *s, uint8_t *halfpel[4][4], AVFrame *fr
int
ls
=
frame
->
linesize
[
p
];
int
ls
=
frame
->
linesize
[
p
];
uint8_t
*
src
=
frame
->
data
[
p
];
uint8_t
*
src
=
frame
->
data
[
p
];
halfpel
[
1
][
p
]
=
(
uint8_t
*
)
av_malloc
(
ls
*
(
h
+
2
*
EDGE_WIDTH
))
+
EDGE_WIDTH
*
(
1
+
ls
);
halfpel
[
1
][
p
]
=
av_malloc
(
ls
*
(
h
+
2
*
EDGE_WIDTH
))
+
EDGE_WIDTH
*
(
1
+
ls
);
halfpel
[
2
][
p
]
=
(
uint8_t
*
)
av_malloc
(
ls
*
(
h
+
2
*
EDGE_WIDTH
))
+
EDGE_WIDTH
*
(
1
+
ls
);
halfpel
[
2
][
p
]
=
av_malloc
(
ls
*
(
h
+
2
*
EDGE_WIDTH
))
+
EDGE_WIDTH
*
(
1
+
ls
);
halfpel
[
3
][
p
]
=
(
uint8_t
*
)
av_malloc
(
ls
*
(
h
+
2
*
EDGE_WIDTH
))
+
EDGE_WIDTH
*
(
1
+
ls
);
halfpel
[
3
][
p
]
=
av_malloc
(
ls
*
(
h
+
2
*
EDGE_WIDTH
))
+
EDGE_WIDTH
*
(
1
+
ls
);
halfpel
[
0
][
p
]
=
src
;
halfpel
[
0
][
p
]
=
src
;
for
(
y
=
0
;
y
<
h
;
y
++
){
for
(
y
=
0
;
y
<
h
;
y
++
){
...
...
libavformat/rmenc.c
View file @
44b0edda
...
@@ -355,7 +355,7 @@ static int rm_write_audio(AVFormatContext *s, const uint8_t *buf, int size, int
...
@@ -355,7 +355,7 @@ static int rm_write_audio(AVFormatContext *s, const uint8_t *buf, int size, int
int
i
;
int
i
;
/* XXX: suppress this malloc */
/* XXX: suppress this malloc */
buf1
=
(
uint8_t
*
)
av_malloc
(
size
*
sizeof
(
uint8_t
)
);
buf1
=
av_malloc
(
size
*
sizeof
(
uint8_t
)
);
write_packet_header
(
s
,
stream
,
size
,
!!
(
flags
&
AV_PKT_FLAG_KEY
));
write_packet_header
(
s
,
stream
,
size
,
!!
(
flags
&
AV_PKT_FLAG_KEY
));
...
...
libswscale/colorspace-test.c
View file @
44b0edda
...
@@ -36,8 +36,8 @@
...
@@ -36,8 +36,8 @@
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
int
i
,
funcNum
;
int
i
,
funcNum
;
uint8_t
*
srcBuffer
=
(
uint8_t
*
)
av_malloc
(
SIZE
);
uint8_t
*
srcBuffer
=
av_malloc
(
SIZE
);
uint8_t
*
dstBuffer
=
(
uint8_t
*
)
av_malloc
(
SIZE
);
uint8_t
*
dstBuffer
=
av_malloc
(
SIZE
);
int
failedNum
=
0
;
int
failedNum
=
0
;
int
passedNum
=
0
;
int
passedNum
=
0
;
...
...
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