예제 #1
0
파일: packet.go 프로젝트: gale320/goav
//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)))
}
예제 #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)))
}