add rtp profile for h264/h265

This commit is contained in:
qiurui 2024-05-10 09:30:54 +08:00
parent c59afb165b
commit 0d392159f3
2 changed files with 15 additions and 0 deletions

13
patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/src/avprofile.c b/src/avprofile.c
index d488a41..d722556 100644
--- a/src/avprofile.c
+++ b/src/avprofile.c
@@ -472,6 +472,8 @@ void av_profile_init(RtpProfile *profile)
rtp_profile_set_payload(profile,31,&payload_type_h261);
rtp_profile_set_payload(profile,32,&payload_type_mpv);
rtp_profile_set_payload(profile,34,&payload_type_h263);
+ rtp_profile_set_payload(profile,34,&payload_type_h264);
+ rtp_profile_set_payload(profile,34,&payload_type_h265);
}

View File

@ -472,6 +472,8 @@ void av_profile_init(RtpProfile *profile)
rtp_profile_set_payload(profile,31,&payload_type_h261);
rtp_profile_set_payload(profile,32,&payload_type_mpv);
rtp_profile_set_payload(profile,34,&payload_type_h263);
rtp_profile_set_payload(profile,34,&payload_type_h264);
rtp_profile_set_payload(profile,34,&payload_type_h265);
}