You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Minor simplification
Commited in SoC by Vitor Sessak on 2007-10-30 21:11:34 Originally committed as revision 12705 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -430,7 +430,6 @@ int avfilter_graph_config_links(AVFilterContext *graphctx)
|
|||||||
|
|
||||||
static AVFilterContext *create_filter_with_args(const char *filt, void *opaque)
|
static AVFilterContext *create_filter_with_args(const char *filt, void *opaque)
|
||||||
{
|
{
|
||||||
AVFilter *filterdef;
|
|
||||||
AVFilterContext *ret;
|
AVFilterContext *ret;
|
||||||
char *filter = av_strdup(filt); /* copy - don't mangle the input string */
|
char *filter = av_strdup(filt); /* copy - don't mangle the input string */
|
||||||
char *name, *args;
|
char *name, *args;
|
||||||
@@ -447,8 +446,7 @@ static AVFilterContext *create_filter_with_args(const char *filt, void *opaque)
|
|||||||
av_log(NULL, AV_LOG_INFO, "creating filter \"%s\" with args \"%s\"\n",
|
av_log(NULL, AV_LOG_INFO, "creating filter \"%s\" with args \"%s\"\n",
|
||||||
name, args ? args : "(none)");
|
name, args ? args : "(none)");
|
||||||
|
|
||||||
if((filterdef = avfilter_get_by_name(name)) &&
|
if(ret = avfilter_open(avfilter_get_by_name(name), NULL)) {
|
||||||
(ret = avfilter_open(filterdef, NULL))) {
|
|
||||||
if(avfilter_init_filter(ret, args, opaque)) {
|
if(avfilter_init_filter(ret, args, opaque)) {
|
||||||
av_log(NULL, AV_LOG_ERROR, "error initializing filter!\n");
|
av_log(NULL, AV_LOG_ERROR, "error initializing filter!\n");
|
||||||
avfilter_destroy(ret);
|
avfilter_destroy(ret);
|
||||||
|
Reference in New Issue
Block a user