mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-05 08:06:59 +08:00
21 lines
387 B
Go
21 lines
387 B
Go
package astiav
|
|
|
|
//#include <libavfilter/avfilter.h>
|
|
import "C"
|
|
|
|
// https://github.com/FFmpeg/FFmpeg/blob/n5.0/libavfilter/avfilter.h#L471
|
|
type FilterLink struct {
|
|
c *C.AVFilterLink
|
|
}
|
|
|
|
func newFilterLinkFromC(c *C.AVFilterLink) *FilterLink {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
return &FilterLink{c: c}
|
|
}
|
|
|
|
func (l *FilterLink) TimeBase() Rational {
|
|
return newRationalFromC(l.c.time_base)
|
|
}
|