mirror of
https://github.com/aler9/gortsplib
synced 2025-10-26 08:40:35 +08:00
h264: move SPS bitstream restriction into dedicated struct
This commit is contained in:
@@ -74,12 +74,13 @@ func TestSPSUnmarshal(t *testing.T) {
|
||||
NumUnitsInTick: 1,
|
||||
TimeScale: 60,
|
||||
},
|
||||
BitstreamRestrictionFlag: true,
|
||||
MotionVectorsOverPicBoundariesFlag: true,
|
||||
Log2MaxMvLengthHorizontal: 11,
|
||||
Log2MaxMvLengthVertical: 11,
|
||||
MaxNumReorderFrames: 2,
|
||||
MaxDecFrameBuffering: 4,
|
||||
BitstreamRestriction: &SPS_BitstreamRestriction{
|
||||
MotionVectorsOverPicBoundariesFlag: true,
|
||||
Log2MaxMvLengthHorizontal: 11,
|
||||
Log2MaxMvLengthVertical: 11,
|
||||
MaxNumReorderFrames: 2,
|
||||
MaxDecFrameBuffering: 4,
|
||||
},
|
||||
},
|
||||
},
|
||||
1280,
|
||||
@@ -112,11 +113,12 @@ func TestSPSUnmarshal(t *testing.T) {
|
||||
NumUnitsInTick: 1,
|
||||
TimeScale: 60,
|
||||
},
|
||||
BitstreamRestrictionFlag: true,
|
||||
MotionVectorsOverPicBoundariesFlag: true,
|
||||
Log2MaxMvLengthHorizontal: 11,
|
||||
Log2MaxMvLengthVertical: 11,
|
||||
MaxDecFrameBuffering: 3,
|
||||
BitstreamRestriction: &SPS_BitstreamRestriction{
|
||||
MotionVectorsOverPicBoundariesFlag: true,
|
||||
Log2MaxMvLengthHorizontal: 11,
|
||||
Log2MaxMvLengthVertical: 11,
|
||||
MaxDecFrameBuffering: 3,
|
||||
},
|
||||
},
|
||||
},
|
||||
1920,
|
||||
@@ -149,12 +151,13 @@ func TestSPSUnmarshal(t *testing.T) {
|
||||
NumUnitsInTick: 1,
|
||||
TimeScale: 60,
|
||||
},
|
||||
BitstreamRestrictionFlag: true,
|
||||
MotionVectorsOverPicBoundariesFlag: true,
|
||||
Log2MaxMvLengthHorizontal: 11,
|
||||
Log2MaxMvLengthVertical: 11,
|
||||
MaxNumReorderFrames: 2,
|
||||
MaxDecFrameBuffering: 4,
|
||||
BitstreamRestriction: &SPS_BitstreamRestriction{
|
||||
MotionVectorsOverPicBoundariesFlag: true,
|
||||
Log2MaxMvLengthHorizontal: 11,
|
||||
Log2MaxMvLengthVertical: 11,
|
||||
MaxNumReorderFrames: 2,
|
||||
MaxDecFrameBuffering: 4,
|
||||
},
|
||||
},
|
||||
},
|
||||
1920,
|
||||
|
||||
Reference in New Issue
Block a user