Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Jan 18, 2025
1 parent 80ffc8b commit 10595a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions janus/src/rtp.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
#define US_RTP_DATAGRAM_SIZE 1200
#define US_RTP_HEADER_SIZE 12

#define US_RTP_VIDEO_PAYLOAD 96
#define US_RTP_AUDIO_PAYLOAD 111


typedef struct {
uint payload;
Expand Down
2 changes: 1 addition & 1 deletion janus/src/rtpa.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ us_rtpa_s *us_rtpa_init(us_rtp_callback_f callback) {
us_rtpa_s *rtpa;
US_CALLOC(rtpa, 1);
rtpa->rtp = us_rtp_init();
us_rtp_assign(rtpa->rtp, 111, false);
us_rtp_assign(rtpa->rtp, US_RTP_AUDIO_PAYLOAD, false);
rtpa->callback = callback;
return rtpa;
}
Expand Down
2 changes: 1 addition & 1 deletion janus/src/rtpv.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ us_rtpv_s *us_rtpv_init(us_rtp_callback_f callback) {
us_rtpv_s *rtpv;
US_CALLOC(rtpv, 1);
rtpv->rtp = us_rtp_init();
us_rtp_assign(rtpv->rtp, 96, true);
us_rtp_assign(rtpv->rtp, US_RTP_VIDEO_PAYLOAD, true);
rtpv->callback = callback;
return rtpv;
}
Expand Down

0 comments on commit 10595a1

Please sign in to comment.