From c5a01eed95f1837e93fee27bce4da78c79f4ed10 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期二, 12 十一月 2019 17:41:43 +0800 Subject: [PATCH] update --- 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