mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-08 09:00:16 +08:00
2023-10-22 11:46:19 CST W43D0
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user