Esempio n. 1
0
//Initialize a reference-counted packet from av_malloc()ed data.
func (p *Packet) AvPacketFromData(d *uint8, s int) int {
	return int(C.av_packet_from_data((*C.struct_AVPacket)(p), (*C.uint8_t)(d), C.int(s)))

}
Esempio n. 2
0
//Initialize a reference-counted packet from av_malloc()ed data.
//int 	av_packet_from_data (AVPacket *pkt, uint8_t *data, int size)
func Av_packet_from_data(p *AVPacket, d *uint8, s int) int {
	return int(C.av_packet_from_data((*C.struct_AVPacket)(p), (*C.uint8_t)(d), C.int(s)))

}