hls client: add limit on AU size

This commit is contained in:
aler9
2022-04-29 12:02:11 +02:00
parent 095b90b7ef
commit 35b3541e4f
8 changed files with 11 additions and 11 deletions

View File

@@ -70,7 +70,7 @@ func (ts *testHLSServer) onSegment(ctx *gin.Context) {
mux.WriteTables()
enc, _ := h264.EncodeAnnexB([][]byte{
enc, _ := h264.AnnexBEncode([][]byte{
{7, 1, 2, 3}, // SPS
{8}, // PPS
})
@@ -94,7 +94,7 @@ func (ts *testHLSServer) onSegment(ctx *gin.Context) {
time.Sleep(1 * time.Second)
enc, _ = h264.EncodeAnnexB([][]byte{
enc, _ = h264.AnnexBEncode([][]byte{
{5}, // IDR
})