mirror of
https://github.com/aler9/gortsplib
synced 2025-11-02 03:22:58 +08:00
fix error 'wrong_nal_ref_idc' with some streams (https://github.com/aler9/rtsp-simple-server/issues/966)
This commit is contained in:
@@ -567,7 +567,7 @@ func (s *SPS) Unmarshal(buf []byte) error {
|
|||||||
return fmt.Errorf("wrong forbidden bit")
|
return fmt.Errorf("wrong forbidden bit")
|
||||||
}
|
}
|
||||||
|
|
||||||
if nalRefIdc != 3 {
|
if nalRefIdc == 0 {
|
||||||
return fmt.Errorf("wrong nal_ref_idc")
|
return fmt.Errorf("wrong nal_ref_idc")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user