Lines Matching refs:rep_dest
1451 static void move_timelines(struct representation *rep_src, struct representation *rep_dest, DASHContext *c)
1453 if (rep_dest && rep_src ) {
1454 free_timelines_list(rep_dest);
1455 rep_dest->timelines = rep_src->timelines;
1456 rep_dest->n_timelines = rep_src->n_timelines;
1457 rep_dest->first_seq_no = rep_src->first_seq_no;
1458 rep_dest->last_seq_no = calc_max_seg_no(rep_dest, c);
1461 rep_dest->cur_seq_no = rep_src->cur_seq_no;
1465 static void move_segments(struct representation *rep_src, struct representation *rep_dest, DASHContext *c)
1467 if (rep_dest && rep_src ) {
1468 free_fragment_list(rep_dest);
1469 if (rep_src->start_number > (rep_dest->start_number + rep_dest->n_fragments))
1470 rep_dest->cur_seq_no = 0;
1472 rep_dest->cur_seq_no += rep_src->start_number - rep_dest->start_number;
1473 rep_dest->fragments = rep_src->fragments;
1474 rep_dest->n_fragments = rep_src->n_fragments;
1475 rep_dest->parent = rep_src->parent;
1476 rep_dest->last_seq_no = calc_max_seg_no(rep_dest, c);
2000 static int copy_init_section(struct representation *rep_dest, struct representation *rep_src)
2002 rep_dest->init_sec_buf = av_mallocz(rep_src->init_sec_buf_size);
2003 if (!rep_dest->init_sec_buf) {
2004 av_log(rep_dest->ctx, AV_LOG_WARNING, "Cannot alloc memory for init_sec_buf\n");
2007 memcpy(rep_dest->init_sec_buf, rep_src->init_sec_buf, rep_src->init_sec_data_len);
2008 rep_dest->init_sec_buf_size = rep_src->init_sec_buf_size;
2009 rep_dest->init_sec_data_len = rep_src->init_sec_data_len;
2010 rep_dest->cur_timestamp = rep_src->cur_timestamp;