2023-10-19 14:31:46 CST W42D4

This commit is contained in:
aggresss
2023-10-19 14:31:46 +08:00
parent 762aa14362
commit 0f95831c39
52 changed files with 9140 additions and 4324 deletions

View File

@@ -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.