go-astiav/dictionary_entry.go
2022-02-13 19:08:18 +01:00

23 lines
476 B
Go

package astiav
//#cgo pkg-config: libavutil
//#include <libavutil/dict.h>
import "C"
// https://github.com/FFmpeg/FFmpeg/blob/n5.0/libavutil/dict.h#L79
type DictionaryEntry struct {
c *C.struct_AVDictionaryEntry
}
func newDictionaryEntryFromC(c *C.struct_AVDictionaryEntry) *DictionaryEntry {
return &DictionaryEntry{c: c}
}
func (e DictionaryEntry) Key() string {
return C.GoString(e.c.key)
}
func (e DictionaryEntry) Value() string {
return C.GoString(e.c.value)
}