diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-05-23 13:53:42 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-06-09 08:42:50 +0200 |
commit | 6fef82f22df863c59446228156fb3f7ce826f5a2 (patch) | |
tree | 02b5d05bebf3e22f384818b0fb2078cb26a8db09 | |
parent | fbaa8fe6c66efdc97330f9343385eb6bb76e5339 (diff) |
ffmpeg: with filter_complex, avoid random in<->out mapping.
With complex filters, an output can come from any input,
or several inputs, including inputs of a different type.
Copying the codec parameters from the first input with
the same type does not make any sense.
This does not change anything for simple 1->1 filters,
as source_index is set in that case.
-rw-r--r-- | ffmpeg.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -2730,16 +2730,6 @@ static InputStream *get_input_stream(OutputStream *ost) { if (ost->source_index >= 0) return input_streams[ost->source_index]; - - if (ost->filter) { - FilterGraph *fg = ost->filter->graph; - int i; - - for (i = 0; i < fg->nb_inputs; i++) - if (fg->inputs[i]->ist->st->codec->codec_type == ost->st->codec->codec_type) - return fg->inputs[i]->ist; - } - return NULL; } |