fftools/ffmpeg_filter: split finding an unused stream into a function

Avoids filtering code from digging in demuxer internals.
This commit is contained in:
Anton Khirnov
2023-05-11 10:40:58 +02:00
parent 8c0f516133
commit ede6794d6a
3 changed files with 16 additions and 7 deletions

View File

@@ -882,6 +882,11 @@ int ifile_get_packet(InputFile *f, AVPacket **pkt);
void ist_output_add(InputStream *ist, OutputStream *ost);
void ist_filter_add(InputStream *ist, InputFilter *ifilter, int is_simple);
/**
* Find an unused input stream of given type.
*/
InputStream *ist_find_unused(enum AVMediaType type);
/* iterate over all input streams in all input files;
* pass NULL to start iteration */
InputStream *ist_iter(InputStream *prev);