2023-10-22 11:46:19 CST W43D0

This commit is contained in:
aggresss
2023-10-22 11:46:19 +08:00
parent 0f95831c39
commit e163918619
62 changed files with 2326 additions and 355 deletions

View File

@@ -281,14 +281,6 @@ func (optrs *AVOptionRanges) GetRange() []*AVOptionRange {
optrs.nb_components*optrs.nb_ranges)
}
// Custom: GetRangeIdx gets `AVOptionRanges.range` index value.
func (optrs *AVOptionRanges) GetRangeIdx(idx int) *AVOptionRange {
if idx >= int(optrs.nb_components*optrs.nb_ranges) {
return nil
}
return PointerOffset((*AVOptionRange)(*optrs._range), idx)
}
// Custom: GetNbRanges gets `AVOptionRanges.nb_ranges` value.
func (optrs *AVOptionRanges) GetNbRanges() int32 {
return (int32)(optrs.nb_ranges)