[FFmpeg-devel] [PATCH 2/8] avformat: introduce AVStreamGroup
Anton Khirnov
anton at khirnov.net
Mon Dec 11 14:51:38 EET 2023
Quoting James Almer (2023-12-11 13:48:17)
> On 12/11/2023 7:59 AM, Anton Khirnov wrote:
> > Quoting James Almer (2023-12-05 23:43:56)
> >> @@ -2819,6 +2972,22 @@ AVRational av_guess_frame_rate(AVFormatContext *ctx, AVStream *stream,
> >> int avformat_match_stream_specifier(AVFormatContext *s, AVStream *st,
> >> const char *spec);
> >>
> >> +/**
> >> + * Check if the group stg contained in s is matched by the stream group
> >> + * specifier spec.
> >> + *
> >> + * See the "stream group specifiers" chapter in the documentation for the
> >> + * syntax of spec.
> >> + *
> >> + * @return >0 if stg is matched by spec;
> >> + * 0 if stg is not matched by spec;
> >> + * AVERROR code if spec is invalid
> >> + *
> >> + * @note A stream group specifier can match several groups in the format.
> >> + */
> >> +int avformat_match_stream_group_specifier(AVFormatContext *s, AVStreamGroup *stg,
> >> + const char *spec);
> >
> > What is this for? It does not seem to be used in this set.
>
> Remnant from when i used in the CLI while developing this set.
> I can remove it, but would it not be useful for some other API user?
I doubt this API is useful to anyone and would much prefer to move it
back to the CLI where it belongs.
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list