Skip to content

Commit

Permalink
Add fourcc helper
Browse files Browse the repository at this point in the history
  • Loading branch information
csnewman committed Feb 25, 2024
1 parent 6e4dfb2 commit e2c9222
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ func AVOptSetSlice[T any](obj unsafe.Pointer, name *CStr, val []T, searchFlags i
func (s *AVRational) String() string {
return fmt.Sprintf("%v/%v (%v)", s.Num(), s.Den(), s.Num()/s.Den())
}

func FFIOWFourCC(s *AVIOContext, a uint8, b uint8, c uint8, d uint8) {
AVIOWl32(s, uint(a)|(uint(b)<<8)|(uint(c)<<16)|(uint(d)<<24))
}

0 comments on commit e2c9222

Please sign in to comment.