2023-10-22 11:46:19 CST W43D0

This commit is contained in:
aggresss
2023-10-22 11:46:19 +08:00
parent 0f95831c39
commit e163918619
62 changed files with 2326 additions and 355 deletions

19
avutil_assert.go Normal file
View File

@@ -0,0 +1,19 @@
package ffmpeg
/*
#include <libavutil/avassert.h>
*/
import "C"
// AvAssert0
func AvAssert0(cond bool) {
if !cond {
AvLog(nil, AV_LOG_PANIC, "Assertion failed\n")
panic("AvAssert0 assert failed")
}
}
// AvAssert0Fpu asserts that floating point operations can be executed.
func AvAssert0Fpu() {
C.av_assert0_fpu()
}