diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:39:28 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:39:28 +0000 |
commit | 07d0bba50710abf8af975a40c97a7ac18be8482c (patch) | |
tree | cdf70c93fd983ee4e27f18bba21ef097e82dad69 | |
parent | 75ce65468fe53f3d2fe33aa031aacd430d798284 (diff) | |
download | ffmpeg-07d0bba50710abf8af975a40c97a7ac18be8482c.tar.gz |
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
Originally committed as revision 12028 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavfilter/avfilter.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 3de6ebf507..53ca831026 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -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; } |