mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-10-19 12:14:19 +00:00
refactoring
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user