From 98d01a35d01aa0b0f172590da545d489fc49637d Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期三, 23 十月 2019 09:52:11 +0800
Subject: [PATCH] add fps get

---
 libcffmpeg.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/libcffmpeg.c b/libcffmpeg.c
index edc7b5c..7c30caf 100644
--- a/libcffmpeg.c
+++ b/libcffmpeg.c
@@ -63,6 +63,14 @@
     fn_run(h, input);
 }
 
+int wrap_fn_fps(void *lib, const cffmpeg h){
+    if(!fn_fps){
+        fn_fps = (lib_cffmpeg_fps)dlsym(lib, "c_ffmpeg_get_fps");
+        if (!fn_fps) return 25;
+    }
+    return fn_fps(h);
+}
+
 void wrap_fn_run_gb28181(void *lib, const cffmpeg h){
     if (!fn_gb28181){
         fn_gb28181 = (lib_cffmpeg_gb28181)dlsym(lib, "c_ffmpeg_run_gb28181");

--
Gitblit v1.8.0