Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
145a8471
Commit
145a8471
authored
Jan 06, 2015
by
Paul B Mahol
1
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
Show 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)
...
@@ -496,6 +496,8 @@ static av_cold int init(AVFilterContext *ctx)
snprintf
(
name
,
sizeof
(
name
),
"input%d"
,
i
);
snprintf
(
name
,
sizeof
(
name
),
"input%d"
,
i
);
pad
.
type
=
AVMEDIA_TYPE_AUDIO
;
pad
.
type
=
AVMEDIA_TYPE_AUDIO
;
pad
.
name
=
av_strdup
(
name
);
pad
.
name
=
av_strdup
(
name
);
if
(
!
pad
.
name
)
return
AVERROR
(
ENOMEM
);
pad
.
filter_frame
=
filter_frame
;
pad
.
filter_frame
=
filter_frame
;
ff_insert_inpad
(
ctx
,
i
,
&
pad
);
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)
...
@@ -214,6 +214,8 @@ static av_cold int join_init(AVFilterContext *ctx)
snprintf
(
name
,
sizeof
(
name
),
"input%d"
,
i
);
snprintf
(
name
,
sizeof
(
name
),
"input%d"
,
i
);
pad
.
type
=
AVMEDIA_TYPE_AUDIO
;
pad
.
type
=
AVMEDIA_TYPE_AUDIO
;
pad
.
name
=
av_strdup
(
name
);
pad
.
name
=
av_strdup
(
name
);
if
(
!
pad
.
name
)
return
AVERROR
(
ENOMEM
);
pad
.
filter_frame
=
filter_frame
;
pad
.
filter_frame
=
filter_frame
;
pad
.
needs_fifo
=
1
;
pad
.
needs_fifo
=
1
;
...
...
libavfilter/split.c
View file @
145a8471
...
@@ -52,6 +52,8 @@ static av_cold int split_init(AVFilterContext *ctx)
...
@@ -52,6 +52,8 @@ static av_cold int split_init(AVFilterContext *ctx)
snprintf
(
name
,
sizeof
(
name
),
"output%d"
,
i
);
snprintf
(
name
,
sizeof
(
name
),
"output%d"
,
i
);
pad
.
type
=
ctx
->
filter
->
inputs
[
0
].
type
;
pad
.
type
=
ctx
->
filter
->
inputs
[
0
].
type
;
pad
.
name
=
av_strdup
(
name
);
pad
.
name
=
av_strdup
(
name
);
if
(
!
pad
.
name
)
return
AVERROR
(
ENOMEM
);
ff_insert_outpad
(
ctx
,
i
,
&
pad
);
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)
...
@@ -289,6 +289,8 @@ static av_cold int movie_common_init(AVFilterContext *ctx)
snprintf
(
name
,
sizeof
(
name
),
"out%d"
,
i
);
snprintf
(
name
,
sizeof
(
name
),
"out%d"
,
i
);
pad
.
type
=
movie
->
st
[
i
].
st
->
codec
->
codec_type
;
pad
.
type
=
movie
->
st
[
i
].
st
->
codec
->
codec_type
;
pad
.
name
=
av_strdup
(
name
);
pad
.
name
=
av_strdup
(
name
);
if
(
!
pad
.
name
)
return
AVERROR
(
ENOMEM
);
pad
.
config_props
=
movie_config_output_props
;
pad
.
config_props
=
movie_config_output_props
;
pad
.
request_frame
=
movie_request_frame
;
pad
.
request_frame
=
movie_request_frame
;
ff_insert_outpad
(
ctx
,
i
,
&
pad
);
ff_insert_outpad
(
ctx
,
i
,
&
pad
);
...
...
zhaoyunfei
@zhaoyunfei
mentioned in commit
bbfe0f7b
·
May 18, 2020
mentioned in commit
bbfe0f7b
mentioned in commit bbfe0f7b084e7217800e7f5e1cb34968840173f0
Toggle commit list
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