fix error 'wrong_nal_ref_idc' with some streams (https://github.com/aler9/rtsp-simple-server/issues/966)

This commit is contained in:
aler9
2022-06-03 22:42:09 +02:00
parent 7986cb0c5a
commit 45f5107ae3

View File

@@ -567,7 +567,7 @@ func (s *SPS) Unmarshal(buf []byte) error {
return fmt.Errorf("wrong forbidden bit")
}
if nalRefIdc != 3 {
if nalRefIdc == 0 {
return fmt.Errorf("wrong nal_ref_idc")
}