rtmp: fix parsing error caused by extended timestamps (#2393) (#2556) (#2384) (#1550) (#2564) (#2808)

This commit is contained in:
Alessandro Ros
2023-12-16 17:17:42 +01:00
committed by GitHub
parent 0c131a2e92
commit 89560c19a0
14 changed files with 430 additions and 228 deletions

View File

@@ -7,6 +7,6 @@ import (
// Chunk is a chunk.
type Chunk interface {
Read(io.Reader, uint32) error
Marshal() ([]byte, error)
Read(r io.Reader, bodyLen uint32, hasExtendedTimestamp bool) error
Marshal(hasExtendedTimestamp bool) ([]byte, error)
}