From 657185145236c12eb0fcf104b4712d8bb88efe16 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期六, 19 十月 2019 11:04:27 +0800 Subject: [PATCH] bug fix --- csrc/cffmpeg.cpp | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/csrc/cffmpeg.cpp b/csrc/cffmpeg.cpp index 9ade6f9..690f061 100644 --- a/csrc/cffmpeg.cpp +++ b/csrc/cffmpeg.cpp @@ -45,6 +45,11 @@ //////passive api +void c_ffmpeg_set_record_duration(const cffmpeg h, const int min, const int max){ + Wrapper *s = (Wrapper*)h; + s->SetRecMinCacheTime(min); +} + void c_ffmpeg_build_recorder(const cffmpeg h, const char* id, const char *dir, int mind, int maxd, int audio){ Wrapper *s = (Wrapper*)h; @@ -118,8 +123,8 @@ } void *c_ffmpeg_create_conv(const int srcW, const int srcH, const int srcFormat, - const int dstW, const int dstH, const int flag){ - return CreateConvertor(srcW, srcH, srcFormat, dstW, dstH, flag); + const int dstW, const int dstH, const int dstFormat, const int flag){ + return CreateConvertor(srcW, srcH, srcFormat, dstW, dstH, dstFormat, flag); } void *c_ffmpeg_conv(void *h, uint8_t *in){ -- Gitblit v1.8.0