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

Function stream_group_add_stream

libavformat/options.c:505–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505static int stream_group_add_stream(AVStreamGroup *stg, AVStream *st)
506{
507 AVStream **streams = av_realloc_array(stg->streams, stg->nb_streams + 1,
508 sizeof(*stg->streams));
509 if (!streams)
510 return AVERROR(ENOMEM);
511
512 stg->streams = streams;
513 stg->streams[stg->nb_streams++] = st;
514
515 return 0;
516}
517
518int avformat_stream_group_add_stream(AVStreamGroup *stg, AVStream *st)
519{

Callers 1

Calls 1

av_realloc_arrayFunction · 0.85

Tested by

no test coverage detected