[FFmpeg-soc] [soc]: r1624 - libavfilter/avfilter.c
koorogi
subversion at mplayerhq.hu
Thu Dec 20 21:47:11 CET 2007
Author: koorogi
Date: Thu Dec 20 21:47:11 2007
New Revision: 1624
Log:
When inserting a filter, don't lose any information we may already have
about the colorspaces supported across the link.
Modified:
libavfilter/avfilter.c
Modified: libavfilter/avfilter.c
==============================================================================
--- libavfilter/avfilter.c (original)
+++ libavfilter/avfilter.c Thu Dec 20 21:47:11 2007
@@ -114,6 +114,13 @@ int avfilter_insert_filter(AVFilterLink
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;
}
More information about the FFmpeg-soc
mailing list