Exemple #1
0
//Allocate the payload of a packet and initialize its fields with default values.
func (p *Packet) AvNewPacket(s int) int {
	return int(C.av_new_packet((*C.struct_AVPacket)(p), C.int(s)))
}
Exemple #2
0
//Allocate the payload of a packet and initialize its fields with default values.
//int 	av_new_packet (AVPacket *pkt, int size)
func Av_new_packet(p *AVPacket, s int) int {
	return int(C.av_new_packet((*C.struct_AVPacket)(p), C.int(s)))
}