mirror of
https://github.com/aler9/gortsplib
synced 2025-10-19 21:44:51 +08:00
h264: fix delta_pic_order_always_zero_flag parsing
This commit is contained in:
@@ -497,7 +497,7 @@ type SPS struct {
|
|||||||
Log2MaxPicOrderCntLsbMinus4 uint32
|
Log2MaxPicOrderCntLsbMinus4 uint32
|
||||||
|
|
||||||
// PicOrderCntType == 1
|
// PicOrderCntType == 1
|
||||||
DeltaPicOrderAlwaysZeroFlag uint32
|
DeltaPicOrderAlwaysZeroFlag bool
|
||||||
OffsetForNonRefPic int32
|
OffsetForNonRefPic int32
|
||||||
OffsetForTopToBottomField int32
|
OffsetForTopToBottomField int32
|
||||||
OffsetForRefFrames []int32
|
OffsetForRefFrames []int32
|
||||||
@@ -664,7 +664,7 @@ func (s *SPS) Unmarshal(buf []byte) error {
|
|||||||
case 1:
|
case 1:
|
||||||
s.Log2MaxPicOrderCntLsbMinus4 = 0
|
s.Log2MaxPicOrderCntLsbMinus4 = 0
|
||||||
|
|
||||||
s.DeltaPicOrderAlwaysZeroFlag, err = readGolombUnsigned(br)
|
s.DeltaPicOrderAlwaysZeroFlag, err = readFlag(br)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -696,7 +696,7 @@ func (s *SPS) Unmarshal(buf []byte) error {
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
s.Log2MaxPicOrderCntLsbMinus4 = 0
|
s.Log2MaxPicOrderCntLsbMinus4 = 0
|
||||||
s.DeltaPicOrderAlwaysZeroFlag = 0
|
s.DeltaPicOrderAlwaysZeroFlag = false
|
||||||
s.OffsetForNonRefPic = 0
|
s.OffsetForNonRefPic = 0
|
||||||
s.OffsetForTopToBottomField = 0
|
s.OffsetForTopToBottomField = 0
|
||||||
s.OffsetForRefFrames = nil
|
s.OffsetForRefFrames = nil
|
||||||
|
Reference in New Issue
Block a user