Re: [FFmpeg-devel] [PATCH 2/8] avformat: introduce AVStreamGroup

2023-12-12 Thread Anton Khirnov
Quoting James Almer (2023-12-11 13:53:40) > On 12/11/2023 8:03 AM, Anton Khirnov wrote: > > Quoting James Almer (2023-12-05 23:43:56) > >> +/** > >> + * Remove a stream group from its AVFormatContext and free it. > >> + * The group must be the last stream of the AVFormatContext. > >> + */ > >> +voi

Re: [FFmpeg-devel] [PATCH 2/8] avformat: introduce AVStreamGroup

2023-12-11 Thread James Almer
On 12/11/2023 8:03 AM, Anton Khirnov wrote: Quoting James Almer (2023-12-05 23:43:56) +/** + * Remove a stream group from its AVFormatContext and free it. + * The group must be the last stream of the AVFormatContext. + */ +void ff_remove_stream_group(AVFormatContext *s, AVStreamGroup *stg); Wh

Re: [FFmpeg-devel] [PATCH 2/8] avformat: introduce AVStreamGroup

2023-12-11 Thread Anton Khirnov
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 *

Re: [FFmpeg-devel] [PATCH 2/8] avformat: introduce AVStreamGroup

2023-12-11 Thread James Almer
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

Re: [FFmpeg-devel] [PATCH 2/8] avformat: introduce AVStreamGroup

2023-12-11 Thread Anton Khirnov
Quoting James Almer (2023-12-05 23:43:56) > +/** > + * Remove a stream group from its AVFormatContext and free it. > + * The group must be the last stream of the AVFormatContext. > + */ > +void ff_remove_stream_group(AVFormatContext *s, AVStreamGroup *stg); When would this be useful? -- Anton Kh

Re: [FFmpeg-devel] [PATCH 2/8] avformat: introduce AVStreamGroup

2023-12-11 Thread Anton Khirnov
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 t