[FFmpeg-cvslog] r12028 - trunk/libavfilter/avfilter.c
vitor
subversion
Fri Feb 15 22:39:29 CET 2008
Author: vitor
Date: Fri Feb 15 22:39:28 2008
New Revision: 12028
Log:
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
Modified:
trunk/libavfilter/avfilter.c
Modified: trunk/libavfilter/avfilter.c
==============================================================================
--- trunk/libavfilter/avfilter.c (original)
+++ trunk/libavfilter/avfilter.c Fri Feb 15 22:39:28 2008
@@ -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-cvslog
mailing list