1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix #3181: SRT & WebRTC: Use SrsRawH264Stream to mux SPS/PPS.

This commit is contained in:
hondaxiao 2022-09-20 21:10:44 +08:00 committed by winlin
parent f974c7c8b0
commit 4acb246c57
7 changed files with 50 additions and 51 deletions

View file

@ -113,7 +113,7 @@ VOID TEST(SrsAVCTest, H264SequenceHeader)
// For muxing sequence header.
if (true) {
SrsRawH264Stream h; string sh;
HELPER_ASSERT_SUCCESS(h.mux_sequence_header("Hello", "world", 0, 0, sh));
HELPER_ASSERT_SUCCESS(h.mux_sequence_header("Hello", "world", sh));
EXPECT_EQ(11+5+5, (int)sh.length());
EXPECT_STREQ("Hello", sh.substr(8, 5).c_str());
EXPECT_STREQ("world", sh.substr(16).c_str());