mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-25 09:00:33 +08:00
Replaced cULong/cLong with C.size_t/C.ptrdiff_t
This commit is contained in:
@@ -196,8 +196,8 @@ func (f *frameDataFrame) pixelFormat() PixelFormat {
|
||||
}
|
||||
|
||||
func (f *frameDataFrame) planeBytes(i int) []byte {
|
||||
return bytesFromC(func(size *cUlong) *C.uint8_t {
|
||||
*size = cUlong(int(f.f.c.linesize[i]) * f.f.Height())
|
||||
return bytesFromC(func(size *C.size_t) *C.uint8_t {
|
||||
*size = C.size_t(int(f.f.c.linesize[i]) * f.f.Height())
|
||||
return f.f.c.data[i]
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user