mirror of
https://github.com/giorgisio/goav.git
synced 2024-04-21 12:31:56 +00:00
14 lines
374 B
Go
14 lines
374 B
Go
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
|
|
// Giorgis (habtom@giorgis.io)
|
|
|
|
package avformat
|
|
|
|
//#cgo pkg-config: libavutil
|
|
//#include <libavutil/avutil.h>
|
|
import "C"
|
|
import "github.com/giorgisio/goav/avcodec"
|
|
|
|
func newRational(r C.struct_AVRational) avcodec.Rational {
|
|
return avcodec.NewRational(int(r.num), int(r.den))
|
|
}
|