Commit 439011aa authored by vitor's avatar vitor

When inserting a filter, don't lose any information we may already have

about the colorspaces supported across the link.

Commited in SoC by Bobby Bingham on 2007-12-20 20:47:11


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12028 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1020f48b
......@@ -114,6 +114,13 @@ int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt,
link->dstpad = in;
filt->inputs[in] = link;
/* if any information on supported colorspaces already exists on the
* link, we need to preserve that */
if(link->out_formats) {
filt->outputs[out]->out_formats = link->out_formats;
link->out_formats = NULL;
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment