Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-05-23 15:53:42 +0400
committerNicolas George <nicolas.george@normalesup.org>2012-06-09 10:42:50 +0400
commit6fef82f22df863c59446228156fb3f7ce826f5a2 (patch)
tree02b5d05bebf3e22f384818b0fb2078cb26a8db09 /ffmpeg.c
parentfbaa8fe6c66efdc97330f9343385eb6bb76e5339 (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.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 9eaad71112..4fed76fe55 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;
}