MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / avformat_stream_group_add_stream

Function avformat_stream_group_add_stream

libavformat/options.c:518–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518int avformat_stream_group_add_stream(AVStreamGroup *stg, AVStream *st)
519{
520 const FFStreamGroup *stgi = cffstreamgroup(stg);
521 const FFStream *sti = cffstream(st);
522
523 if (stgi->fmtctx != sti->fmtctx)
524 return AVERROR(EINVAL);
525
526 for (int i = 0; i < stg->nb_streams; i++)
527 if (stg->streams[i]->index == st->index)
528 return AVERROR(EEXIST);
529
530 return stream_group_add_stream(stg, st);
531}
532
533static int option_is_disposition(const AVOption *opt)
534{

Callers 6

mov_read_iacbFunction · 0.85
mov_parse_tilesFunction · 0.85
mov_parse_lcevc_streamsFunction · 0.85
iamf_read_headerFunction · 0.85
of_parse_group_tokenFunction · 0.85

Calls 2

cffstreamFunction · 0.85
stream_group_add_streamFunction · 0.85

Tested by

no test coverage detected