From f93ee1a42e8c47e472332287b7350b66a6b0fa11 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期五, 24 七月 2020 18:28:57 +0800 Subject: [PATCH] 保存触发id之后的视频作为触发视频 --- libcffmpeg.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/libcffmpeg.c b/libcffmpeg.c index 8398ea7..70be86b 100644 --- a/libcffmpeg.c +++ b/libcffmpeg.c @@ -177,6 +177,13 @@ } return fn_get_avpacket2(h, data, size, key); } + +void wrap_fn_release_buf(void *lib, void *buf){ + if (!fn_release_buf){ + fn_release_buf = (lib_cffmpeg_release_buf)dlsym(lib, "c_ffmpeg_release_buf"); + } + if (fn_release_buf) fn_release_buf(buf); +} // for encoder cencoder wrap_fn_create_encoder(void *lib, const int w, const int h, const int fps, const int br, const int pix_fmt, const int scale_flag, const int gi){ if (!fn_create_encoder){ -- Gitblit v1.8.0