refactoring

This commit is contained in:
Maxim Devaev
2022-07-12 08:58:55 +03:00
parent 69dc9b8b49
commit 5e364fb88b
3 changed files with 13 additions and 7 deletions

View File

@@ -35,6 +35,13 @@ rtp_s *rtp_init(unsigned payload, bool video) {
return rtp;
}
rtp_s *rtp_dup(const rtp_s *rtp) {
rtp_s *new;
A_CALLOC(new, 1);
memcpy(new, rtp, sizeof(rtp_s));
return new;
}
void rtp_destroy(rtp_s *rtp) {
free(rtp);
}