You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
Cosmetics: more function reordering
Commited in SoC by Vitor Sessak on 2008-05-24 12:53:28 Originally committed as revision 13342 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -150,6 +150,29 @@ static AVFilterContext *create_filter(AVFilterGraph *ctx, int index,
|
|||||||
return filt;
|
return filt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parse "filter=params"
|
||||||
|
* @arg name a pointer (that need to be free'd after use) to the name of the
|
||||||
|
* filter
|
||||||
|
* @arg ars a pointer (that need to be free'd after use) to the args of the
|
||||||
|
* filter
|
||||||
|
*/
|
||||||
|
static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph,
|
||||||
|
int index, AVClass *log_ctx)
|
||||||
|
{
|
||||||
|
char *opts;
|
||||||
|
char *name = consume_string(buf);
|
||||||
|
|
||||||
|
if(**buf == '=') {
|
||||||
|
(*buf)++;
|
||||||
|
opts = consume_string(buf);
|
||||||
|
} else {
|
||||||
|
opts = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return create_filter(graph, index, name, opts, log_ctx);
|
||||||
|
}
|
||||||
|
|
||||||
static void free_inout(AVFilterInOut *head)
|
static void free_inout(AVFilterInOut *head)
|
||||||
{
|
{
|
||||||
while(head) {
|
while(head) {
|
||||||
@@ -226,29 +249,6 @@ static int link_filter_inouts(AVFilterContext *filter,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Parse "filter=params"
|
|
||||||
* @arg name a pointer (that need to be free'd after use) to the name of the
|
|
||||||
* filter
|
|
||||||
* @arg ars a pointer (that need to be free'd after use) to the args of the
|
|
||||||
* filter
|
|
||||||
*/
|
|
||||||
static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph,
|
|
||||||
int index, AVClass *log_ctx)
|
|
||||||
{
|
|
||||||
char *opts;
|
|
||||||
char *name = consume_string(buf);
|
|
||||||
|
|
||||||
if(**buf == '=') {
|
|
||||||
(*buf)++;
|
|
||||||
opts = consume_string(buf);
|
|
||||||
} else {
|
|
||||||
opts = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return create_filter(graph, index, name, opts, log_ctx);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int parse_inputs(const char **buf, AVFilterInOut **currInputs,
|
static int parse_inputs(const char **buf, AVFilterInOut **currInputs,
|
||||||
AVFilterInOut **openLinks, AVClass *log_ctx)
|
AVFilterInOut **openLinks, AVClass *log_ctx)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user