video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-07-26 e84510254860e916cbb48ec3de4557b14a99d76c
add log
1个文件已修改
7 ■■■■ 已修改文件
apipassive.go 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apipassive.go
@@ -5,7 +5,10 @@
#include "libcffmpeg.h"
*/
import "C"
import "unsafe"
import (
    "fmt"
    "unsafe"
)
// FireRecorder fire recorder
func (h *GoFFMPEG) FireRecorder(id int64) {
@@ -29,6 +32,8 @@
    // if p == nil {
    //     return -1, ""
    // }
    path := C.GoString(p)
    fmt.Println("Go get info : ", path, " len: ", l)
    defer C.free(unsafe.Pointer(p))
    return int(i), C.GoString(p)