Skip to content

Commit f890ad8

Browse files
ossrs-aiwinlinvip
authored andcommitted
AI: Refine code.
1 parent 7fcd406 commit f890ad8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

trunk/3rdparty/srs-docs/doc/webrtc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ DVR recording, or maximum compatibility.
456456

457457
## VP9 Codec Support
458458

459-
SRS supports VP9 codec for WebRTC-to-WebRTC streaming since v7.0.0 ([#4548](https://github.com/ossrs/srs/issues/4548)).
459+
SRS supports VP9 codec for WebRTC-to-WebRTC streaming since v7.0.123 ([#4548](https://github.com/ossrs/srs/issues/4548)).
460460
VP9 is a royalty-free codec that saves 20-40% bandwidth compared to H.264. VP9 works better than H.264/H.265 with congestion control
461461
in WebRTC, making it ideal for keeping streams live under network fluctuations. SRS implements VP9 as relay-only (SFU mode),
462462
accepting VP9 streams via WHIP and forwarding to WHEP players without transcoding. VP9 streams cannot be converted to

trunk/src/utest/srs_utest_workflow_rtc_conn.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ VOID TEST(BasicWorkflowRtcConnTest, ManuallyVerifyForPublisherWithAV1)
450450
ruc->dtls_ = true;
451451
ruc->srtp_ = true;
452452
ruc->audio_before_video_ = false;
453-
ruc->codec_ = "av1"; // Specify AV1 codec
453+
ruc->codec_ = "av1"; // Specify AV1 codec
454454

455455
ruc->remote_sdp_str_ = mock_sdp_factory->create_chrome_publisher_offer_with_av1();
456456
HELPER_EXPECT_SUCCESS(ruc->remote_sdp_.parse(ruc->remote_sdp_str_));
@@ -593,7 +593,7 @@ VOID TEST(BasicWorkflowRtcConnTest, ManuallyVerifyForPublisherWithAV1)
593593
pkt.header_.set_ssrc(mock_sdp_factory->video_ssrc_);
594594
pkt.header_.set_sequence(100);
595595
pkt.header_.set_timestamp(1000);
596-
pkt.header_.set_payload_type(45); // AV1 payload type
596+
pkt.header_.set_payload_type(45); // AV1 payload type
597597

598598
SrsUniquePtr<char[]> data(new char[1500]);
599599
SrsBuffer buf(data.get(), 1500);
@@ -665,7 +665,7 @@ VOID TEST(BasicWorkflowRtcConnTest, ManuallyVerifyForPublisherWithVP9)
665665
ruc->dtls_ = true;
666666
ruc->srtp_ = true;
667667
ruc->audio_before_video_ = false;
668-
ruc->codec_ = "vp9"; // Specify VP9 codec
668+
ruc->codec_ = "vp9"; // Specify VP9 codec
669669

670670
ruc->remote_sdp_str_ = mock_sdp_factory->create_chrome_publisher_offer_with_vp9();
671671
HELPER_EXPECT_SUCCESS(ruc->remote_sdp_.parse(ruc->remote_sdp_str_));
@@ -808,7 +808,7 @@ VOID TEST(BasicWorkflowRtcConnTest, ManuallyVerifyForPublisherWithVP9)
808808
pkt.header_.set_ssrc(mock_sdp_factory->video_ssrc_);
809809
pkt.header_.set_sequence(100);
810810
pkt.header_.set_timestamp(1000);
811-
pkt.header_.set_payload_type(98); // VP9 payload type
811+
pkt.header_.set_payload_type(98); // VP9 payload type
812812

813813
SrsUniquePtr<char[]> data(new char[1500]);
814814
SrsBuffer buf(data.get(), 1500);

0 commit comments

Comments
 (0)