mirror of
https://github.com/giorgisio/goav.git
synced 2024-04-21 12:31:56 +00:00
get wrong width and height on 64bit system
This commit is contained in:
+2
-2
@@ -66,11 +66,11 @@ func (cp *AvCodecParameters) AvCodecGetType() MediaType {
|
||||
}
|
||||
|
||||
func (cp *AvCodecParameters) AvCodecGetWidth() int {
|
||||
return *((*int)(unsafe.Pointer(&cp.width)))
|
||||
return (int)(*((*int32)(unsafe.Pointer(&cp.width))))
|
||||
}
|
||||
|
||||
func (cp *AvCodecParameters) AvCodecGetHeight() int {
|
||||
return *((*int)(unsafe.Pointer(&cp.height)))
|
||||
return (int)(*((*int32)(unsafe.Pointer(&cp.height))))
|
||||
}
|
||||
|
||||
func (cp *AvCodecParameters) AvCodecGetChannels() int {
|
||||
|
||||
Reference in New Issue
Block a user