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

Function copy_init_section

libavformat/dashdec.c:2041–2054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2039}
2040
2041static int copy_init_section(struct representation *rep_dest, struct representation *rep_src)
2042{
2043 rep_dest->init_sec_buf = av_mallocz(rep_src->init_sec_buf_size);
2044 if (!rep_dest->init_sec_buf) {
2045 av_log(rep_dest->ctx, AV_LOG_WARNING, "Cannot alloc memory for init_sec_buf\n");
2046 return AVERROR(ENOMEM);
2047 }
2048 memcpy(rep_dest->init_sec_buf, rep_src->init_sec_buf, rep_src->init_sec_data_len);
2049 rep_dest->init_sec_buf_size = rep_src->init_sec_buf_size;
2050 rep_dest->init_sec_data_len = rep_src->init_sec_data_len;
2051 rep_dest->cur_timestamp = rep_src->cur_timestamp;
2052
2053 return 0;
2054}
2055
2056static void move_metadata(AVStream *st, const char *key, char **value)
2057{

Callers 1

dash_read_headerFunction · 0.85

Calls 2

av_logFunction · 0.85
av_malloczFunction · 0.50

Tested by

no test coverage detected