mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-05 15:47:33 +08:00
2023-10-19 14:31:46 CST W42D4
This commit is contained in:
@@ -7,11 +7,12 @@ package ffmpeg
|
||||
import "C"
|
||||
|
||||
// AVERROR returns a negative error code from a POSIX error code, to return from library functions.
|
||||
func AVERROR(e int32) int32 {
|
||||
func AVERROR[T HelperInteger](ie T) (oe int32) {
|
||||
oe = (int32)(ie)
|
||||
if C.EDOM > 0 {
|
||||
return (-e)
|
||||
return (-oe)
|
||||
}
|
||||
return e
|
||||
return oe
|
||||
}
|
||||
|
||||
// AVUNERROR returns a POSIX error code from a library function error return value.
|
||||
|
Reference in New Issue
Block a user