mirror of
https://github.com/asticode/go-astiav.git
synced 2024-05-28 13:53:18 +08:00
23 lines
476 B
Go
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)
|
|
}
|