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
a7eabbb2
Commit
a7eabbb2
authored
Nov 29, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/concat: prefer av_asprintf() over stack allocated buffer.
parent
b99f1303
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
avf_concat.c
libavfilter/avf_concat.c
+3
-5
No files found.
libavfilter/avf_concat.c
View file @
a7eabbb2
...
...
@@ -24,6 +24,7 @@
*/
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "avfilter.h"
...
...
@@ -344,7 +345,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
ConcatContext
*
cat
=
ctx
->
priv
;
int
ret
;
unsigned
seg
,
type
,
str
;
char
name
[
32
];
cat
->
class
=
&
concat_class
;
av_opt_set_defaults
(
cat
);
...
...
@@ -365,8 +365,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
.
get_audio_buffer
=
get_audio_buffer
,
.
filter_frame
=
filter_frame
,
};
snprintf
(
name
,
sizeof
(
name
),
"in%d:%c%d"
,
seg
,
"va"
[
type
],
str
);
pad
.
name
=
av_strdup
(
name
);
pad
.
name
=
av_asprintf
(
"in%d:%c%d"
,
seg
,
"va"
[
type
],
str
);
ff_insert_inpad
(
ctx
,
ctx
->
nb_inputs
,
&
pad
);
}
}
...
...
@@ -379,8 +378,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
.
config_props
=
config_output
,
.
request_frame
=
request_frame
,
};
snprintf
(
name
,
sizeof
(
name
),
"out:%c%d"
,
"va"
[
type
],
str
);
pad
.
name
=
av_strdup
(
name
);
pad
.
name
=
av_asprintf
(
"out:%c%d"
,
"va"
[
type
],
str
);
ff_insert_outpad
(
ctx
,
ctx
->
nb_outputs
,
&
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