From d9952f61a53b693a75490e4932d7136e14e7dc08 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期二, 01 九月 2020 15:22:05 +0800 Subject: [PATCH] bug fixed --- csrc/cffmpeg.cpp | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/csrc/cffmpeg.cpp b/csrc/cffmpeg.cpp index 8d872c4..5d94f90 100644 --- a/csrc/cffmpeg.cpp +++ b/csrc/cffmpeg.cpp @@ -134,6 +134,17 @@ return s->GetPacket(data, size, key); } +int c_ffmpeg_set_devid(const cffmpeg h, const int devid){ + Wrapper *s = (Wrapper*)h; + return s->SetDevID(devid); +} + +void c_ffmpeg_release_buf(void* buf){ + if (buf){ + free(buf); + } +} + // pic encoder void *c_ffmpeg_create_encoder(const int w, const int h, const int fps, const int br, const int pix_fmt, const int scale_flag, const int gi){ return CreateEncoder(w, h, fps, br, pix_fmt, scale_flag, gi); -- Gitblit v1.8.0