Skip to content

Commit e2c9222

Browse files
committed
Add fourcc helper
1 parent 6e4dfb2 commit e2c9222

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

custom.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ func AVOptSetSlice[T any](obj unsafe.Pointer, name *CStr, val []T, searchFlags i
1919
func (s *AVRational) String() string {
2020
return fmt.Sprintf("%v/%v (%v)", s.Num(), s.Den(), s.Num()/s.Den())
2121
}
22+
23+
func FFIOWFourCC(s *AVIOContext, a uint8, b uint8, c uint8, d uint8) {
24+
AVIOWl32(s, uint(a)|(uint(b)<<8)|(uint(c)<<16)|(uint(d)<<24))
25+
}

0 commit comments

Comments
 (0)