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
145a8471
Commit
145a8471
authored
Jan 06, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: check av_strdup() return value
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
3ebd76a9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
0 deletions
+8
-0
af_amix.c
libavfilter/af_amix.c
+2
-0
af_join.c
libavfilter/af_join.c
+2
-0
split.c
libavfilter/split.c
+2
-0
src_movie.c
libavfilter/src_movie.c
+2
-0
No files found.
libavfilter/af_amix.c
View file @
145a8471
...
...
@@ -496,6 +496,8 @@ static av_cold int init(AVFilterContext *ctx)
snprintf
(
name
,
sizeof
(
name
),
"input%d"
,
i
);
pad
.
type
=
AVMEDIA_TYPE_AUDIO
;
pad
.
name
=
av_strdup
(
name
);
if
(
!
pad
.
name
)
return
AVERROR
(
ENOMEM
);
pad
.
filter_frame
=
filter_frame
;
ff_insert_inpad
(
ctx
,
i
,
&
pad
);
...
...
libavfilter/af_join.c
View file @
145a8471
...
...
@@ -214,6 +214,8 @@ static av_cold int join_init(AVFilterContext *ctx)
snprintf
(
name
,
sizeof
(
name
),
"input%d"
,
i
);
pad
.
type
=
AVMEDIA_TYPE_AUDIO
;
pad
.
name
=
av_strdup
(
name
);
if
(
!
pad
.
name
)
return
AVERROR
(
ENOMEM
);
pad
.
filter_frame
=
filter_frame
;
pad
.
needs_fifo
=
1
;
...
...
libavfilter/split.c
View file @
145a8471
...
...
@@ -52,6 +52,8 @@ static av_cold int split_init(AVFilterContext *ctx)
snprintf
(
name
,
sizeof
(
name
),
"output%d"
,
i
);
pad
.
type
=
ctx
->
filter
->
inputs
[
0
].
type
;
pad
.
name
=
av_strdup
(
name
);
if
(
!
pad
.
name
)
return
AVERROR
(
ENOMEM
);
ff_insert_outpad
(
ctx
,
i
,
&
pad
);
}
...
...
libavfilter/src_movie.c
View file @
145a8471
...
...
@@ -289,6 +289,8 @@ static av_cold int movie_common_init(AVFilterContext *ctx)
snprintf
(
name
,
sizeof
(
name
),
"out%d"
,
i
);
pad
.
type
=
movie
->
st
[
i
].
st
->
codec
->
codec_type
;
pad
.
name
=
av_strdup
(
name
);
if
(
!
pad
.
name
)
return
AVERROR
(
ENOMEM
);
pad
.
config_props
=
movie_config_output_props
;
pad
.
request_frame
=
movie_request_frame
;
ff_insert_outpad
(
ctx
,
i
,
&
pad
);
...
...
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