mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-06 00:26:52 +08:00
19 lines
299 B
Go
19 lines
299 B
Go
package astiav
|
|
|
|
//#include <libavutil/avutil.h>
|
|
//#include <libavutil/time.h>
|
|
import "C"
|
|
|
|
const (
|
|
NoPtsValue = int64(C.AV_NOPTS_VALUE)
|
|
TimeBase = int(C.AV_TIME_BASE)
|
|
)
|
|
|
|
var (
|
|
TimeBaseQ = newRationalFromC(C.AV_TIME_BASE_Q)
|
|
)
|
|
|
|
func RelativeTime() int64 {
|
|
return int64(C.av_gettime_relative())
|
|
}
|