Merge pull request #56 from godcong/remote_base

get wrong width and height on 64bit system
This commit is contained in:
Hab Giorgis
2019-11-10 19:11:16 -05:00
committed by GitHub
+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 {