Browse Source

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
tags/v0.5
Vitor Sessak 17 years ago
parent
commit
07d0bba507
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      libavfilter/avfilter.c

+ 7
- 0
libavfilter/avfilter.c View File

@@ -114,6 +114,13 @@ int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt,
link->dstpad = in; link->dstpad = in;
filt->inputs[in] = link; 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; return 0;
} }




Loading…
Cancel
Save