From 950cbbf48896404599204b16bdae0753a0392c20 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期三, 20 十一月 2019 16:29:00 +0800
Subject: [PATCH] update

---
 goffmpeg.go |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/goffmpeg.go b/goffmpeg.go
index 4fb54af..252e7a1 100644
--- a/goffmpeg.go
+++ b/goffmpeg.go
@@ -94,3 +94,16 @@
 
 	C.wrap_fn_run(unsafe.Pointer(libcffmpeg), h.ffmpeg, in)
 }
+
+// FPS fps
+func (h *GoFFMPEG) FPS() int {
+	return int(C.wrap_fn_fps(unsafe.Pointer(libcffmpeg), h.ffmpeg))
+}
+
+// ReleaseC release c memory
+func ReleaseC(p unsafe.Pointer) {
+	if p == nil {
+		return
+	}
+	C.free(unsafe.Pointer(p))
+}

--
Gitblit v1.8.0