From 602b3b2a792d65e49dba07920b100b5feb39d36f Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期一, 16 九月 2019 13:43:40 +0800 Subject: [PATCH] remove log --- libcffmpeg.c | 18 ++++++------------ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git a/libcffmpeg.c b/libcffmpeg.c index a380de4..fda4217 100644 --- a/libcffmpeg.c +++ b/libcffmpeg.c @@ -35,8 +35,6 @@ release_if_err(fn_fire_recorder, lib); fn_info_recorder = (lib_cffmpeg_info_recorder)dlsym(lib, "c_ffmpeg_get_info_recorder"); release_if_err(fn_info_recorder, lib); - fn_rec_id = (lib_cffmpeg_rec_id)dlsym(lib, "c_ffmpeg_get_rec_id"); - release_if_err(fn_rec_id, lib); fn_decoder = (lib_cffmpeg_decoder)dlsym(lib, "c_ffmpeg_build_decoder"); release_if_err(fn_decoder, lib); fn_decoder_pic = (lib_cffmpeg_pic)dlsym(lib, "c_ffmpeg_get_pic_decoder"); @@ -97,28 +95,24 @@ fn_fire_recorder(h, sid, id); } -char* wrap_fn_info_recorder(const cffmpeg h, int* index, int* length){ - return fn_info_recorder(h, index, length); -} - -char* wrap_fn_rec_id(const cffmpeg h, const char* path, int*length){ - return fn_rec_id(h, path, length); +void wrap_fn_info_recorder(const cffmpeg h, int* index, char** recid, int* recidLen, char** fpath, int* pathLen){ + return fn_info_recorder(h, index, recid, recidLen, fpath, pathLen); } void wrap_fn_decoder(const cffmpeg h){ fn_decoder(h); } -void* wrap_fn_decoder_pic(const cffmpeg h, int* wid, int* hei){ - return fn_decoder_pic(h, wid, hei); +void* wrap_fn_decoder_pic(const cffmpeg h, int* wid, int* hei, int64_t *id){ + return fn_decoder_pic(h, wid, hei, id); } void* wrap_fn_get_avpacket(const cffmpeg h, int* size, int* key){ return fn_get_avpacket(h, size, key); } -void* wrap_fn_decode_jpeg(const cffmpeg h, const char* file, int* wid, int* hei){ - return fn_dec_jpeg(h, file, wid, hei); +void* wrap_fn_decode_jpeg(const char* file, int* wid, int* hei){ + return fn_dec_jpeg(file, wid, hei); } // for encoder -- Gitblit v1.8.0