[FFmpeg-devel] [PATCH 7/7] ffmpeg: with filter_complex, avoid random in<->out mapping.
Nicolas George
nicolas.george at normalesup.org
Tue Jun 5 13:23:07 CEST 2012
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.
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
ffmpeg.c | 10 ----------
1 file changed, 10 deletions(-)
As far as I can see, the frame rate computed by patches 2-6 is always the
same as the one this patch removes or a better choice.
diff --git a/ffmpeg.c b/ffmpeg.c
index d92fe2e..6a90631 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2877,16 +2877,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;
}
--
1.7.10
More information about the ffmpeg-devel
mailing list