get wrong width and height on 64bit system

This commit is contained in:
godcong
2019-05-27 22:09:44 +08:00
parent 96468653e0
commit cd5197327f
+2 -2
View File
@@ -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 {