func (f *Frame) Ref(dst *Frame) error { code := C.av_frame_ref(dst.CAVFrame, f.CAVFrame) if code < 0 { return NewErrorFromCode(ErrorCode(code)) } return nil }
//int av_frame_ref (AVFrame *dst, AVFrame *src) //Setup a new reference to the data described by an given frame. func Av_frame_ref(d, s *AVFrame) int { return int(C.av_frame_ref((*C.struct_AVFrame)(unsafe.Pointer(d)), (*C.struct_AVFrame)(unsafe.Pointer(s)))) }