mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-06 08:37:06 +08:00
22 lines
433 B
Go
22 lines
433 B
Go
package astiav
|
|
|
|
//#include <libavutil/dict.h>
|
|
import "C"
|
|
|
|
// https://github.com/FFmpeg/FFmpeg/blob/n5.0/libavutil/dict.h#L79
|
|
type DictionaryEntry struct {
|
|
c *C.AVDictionaryEntry
|
|
}
|
|
|
|
func newDictionaryEntryFromC(c *C.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)
|
|
}
|