| 516 | } |
| 517 | |
| 518 | int 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 | |
| 533 | static int option_is_disposition(const AVOption *opt) |
| 534 | { |
no test coverage detected