mirror of
https://github.com/giorgisio/goav.git
synced 2024-04-21 12:31:56 +00:00
Add bindings for avutil AVDictionary and AVDictionaryEntry.
This commit is contained in:
+2
-2
@@ -89,7 +89,7 @@ func (s *Context) AvNewProgram(id int) *AvProgram {
|
||||
}
|
||||
|
||||
//Read packets of a media file to get stream information.
|
||||
func (s *Context) AvformatFindStreamInfo(d **Dictionary) int {
|
||||
func (s *Context) AvformatFindStreamInfo(d **avutil.Dictionary) int {
|
||||
return int(C.avformat_find_stream_info((*C.struct_AVFormatContext)(s), (**C.struct_AVDictionary)(unsafe.Pointer(d))))
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ func (s *Context) AvformatCloseInput() {
|
||||
}
|
||||
|
||||
//Allocate the stream private data and write the stream header to an output media file.
|
||||
func (s *Context) AvformatWriteHeader(o **Dictionary) int {
|
||||
func (s *Context) AvformatWriteHeader(o **avutil.Dictionary) int {
|
||||
return int(C.avformat_write_header((*C.struct_AVFormatContext)(s), (**C.struct_AVDictionary)(unsafe.Pointer(o))))
|
||||
}
|
||||
|
||||
|
||||
@@ -27,8 +27,8 @@ func (ctxt *Context) VideoCodec() *AvCodec {
|
||||
return (*AvCodec)(unsafe.Pointer(ctxt.video_codec))
|
||||
}
|
||||
|
||||
func (ctxt *Context) Metadata() *Dictionary {
|
||||
return (*Dictionary)(unsafe.Pointer(ctxt.metadata))
|
||||
func (ctxt *Context) Metadata() *avutil.Dictionary {
|
||||
return (*avutil.Dictionary)(unsafe.Pointer(ctxt.metadata))
|
||||
}
|
||||
|
||||
func (ctxt *Context) Internal() *AvFormatInternal {
|
||||
|
||||
@@ -20,8 +20,8 @@ func (avs *Stream) Codec() *CodecContext {
|
||||
return (*CodecContext)(unsafe.Pointer(avs.codec))
|
||||
}
|
||||
|
||||
func (avs *Stream) Metadata() *Dictionary {
|
||||
return (*Dictionary)(unsafe.Pointer(avs.metadata))
|
||||
func (avs *Stream) Metadata() *avutil.Dictionary {
|
||||
return (*avutil.Dictionary)(unsafe.Pointer(avs.metadata))
|
||||
}
|
||||
|
||||
func (avs *Stream) IndexEntries() *AvIndexEntry {
|
||||
|
||||
Reference in New Issue
Block a user