Files
go-astiav/output_format.go
Quentin Renard 477b147104 Initial commit
2022-02-13 19:08:18 +01:00

22 lines
441 B
Go

package astiav
//#cgo pkg-config: libavformat
//#include <libavformat/avformat.h>
import "C"
// https://github.com/FFmpeg/FFmpeg/blob/n5.0/libavformat/avformat.h#L503
type OutputFormat struct {
c *C.struct_AVOutputFormat
}
func newOutputFormatFromC(c *C.struct_AVOutputFormat) *OutputFormat {
if c == nil {
return nil
}
return &OutputFormat{c: c}
}
func (f *OutputFormat) Flags() IOFormatFlags {
return IOFormatFlags(f.c.flags)
}