diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-10-14 10:57:19 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-10-18 13:57:43 +0200 |
commit | 7ef7a22251b852faab9404c85399ba8ac5dfbdc3 (patch) | |
tree | e05f8d71130e2e3e1a98bd86fe1dd44ab118fdee /fftools/ffmpeg_filter.c | |
parent | 0baed07f745ec6bad9ea0fa28cd09b8e6a33bd20 (diff) | |
download | ffmpeg-7ef7a22251b852faab9404c85399ba8ac5dfbdc3.tar.gz |
fftools/ffmpeg: remove the output_streams global
Replace it with an array of streams in each OutputFile. This is a more
accurate reflection of the actual relationship between OutputStream and
OutputFile. This is easier to handle and will allow further
simplifications in future commits.
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r-- | fftools/ffmpeg_filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 82abb38a93..718826a485 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -609,7 +609,7 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter, int i; for (i = 0; i < of->nb_streams; i++) - if (output_streams[of->ost_index + i]->st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) + if (of->streams[i]->st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) break; if (i < of->nb_streams) { |