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
6e9e14e6
Commit
6e9e14e6
authored
Sep 30, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/split: use av_asprintf()
parent
8b36968e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
split.c
libavfilter/split.c
+2
-3
No files found.
libavfilter/split.c
View file @
6e9e14e6
...
...
@@ -26,6 +26,7 @@
#include <stdio.h>
#include "libavutil/attributes.h"
#include "libavutil/avstring.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
...
...
@@ -48,12 +49,10 @@ static av_cold int split_init(AVFilterContext *ctx)
int
i
,
ret
;
for
(
i
=
0
;
i
<
s
->
nb_outputs
;
i
++
)
{
char
name
[
32
];
AVFilterPad
pad
=
{
0
};
snprintf
(
name
,
sizeof
(
name
),
"output%d"
,
i
);
pad
.
type
=
ctx
->
filter
->
inputs
[
0
].
type
;
pad
.
name
=
av_
strdup
(
name
);
pad
.
name
=
av_
asprintf
(
"output%d"
,
i
);
if
(
!
pad
.
name
)
return
AVERROR
(
ENOMEM
);
...
...
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