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

Function ff_stream_clone

libavformat/avformat.c:242–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242AVStream *ff_stream_clone(AVFormatContext *dst_ctx, const AVStream *src)
243{
244 AVStream *st;
245 int ret;
246
247 st = avformat_new_stream(dst_ctx, NULL);
248 if (!st)
249 return NULL;
250
251 ret = stream_params_copy(st, src);
252 if (ret < 0) {
253 ff_remove_stream(dst_ctx, st);
254 return NULL;
255 }
256
257 return st;
258}
259
260const char *avformat_stream_group_name(enum AVStreamGroupParamsType type)
261{

Callers 5

webm_chunk_initFunction · 0.85
open_slaveFunction · 0.85
segment_mux_initFunction · 0.85
fifo_mux_initFunction · 0.85

Calls 3

avformat_new_streamFunction · 0.85
stream_params_copyFunction · 0.85
ff_remove_streamFunction · 0.85

Tested by

no test coverage detected