From 0c98249d381d6e56c78d6e752a49e768a4c4d22e Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期五, 27 九月 2019 12:46:29 +0800
Subject: [PATCH] lib log fix

---
 libcffmpeg.h |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/libcffmpeg.h b/libcffmpeg.h
index 47e7b5c..5b43da3 100644
--- a/libcffmpeg.h
+++ b/libcffmpeg.h
@@ -10,7 +10,8 @@
 
 typedef void* cffmpeg;
 
-typedef cffmpeg(*lib_cffmpeg_create)(const int, const char*);
+typedef cffmpeg(*lib_cffmpeg_create)();
+typedef cffmpeg(*lib_cffmpeg_create2)(const char*);
 typedef void (*lib_cffmpeg_destroy)(const cffmpeg);
 typedef void (*lib_cffmpeg_run)(const cffmpeg, const char*);
 typedef void (*lib_cffmpeg_scale)(const cffmpeg, const int, const int, const int);
@@ -25,6 +26,7 @@
 typedef void*(*lib_cffmpeg_decode)(const char*, const int, int*, int*);
 
 static lib_cffmpeg_create              fn_create = NULL;
+static lib_cffmpeg_create2             fn_create2 = NULL;
 static lib_cffmpeg_destroy             fn_destroy = NULL;
 static lib_cffmpeg_run                 fn_run = NULL;
 static lib_cffmpeg_scale               fn_scale = NULL;
@@ -42,7 +44,8 @@
 libcffmpeg init_libcffmpeg(const char *so_file);
 void release_libcffmpeg(libcffmpeg lib);
 
-cffmpeg wrap_fn_create(const int log, const char *logfile);
+cffmpeg wrap_fn_create();
+cffmpeg wrap_fn_create2(const char *logfile);
 void wrap_fn_destroy(const cffmpeg h);
 void wrap_fn_run(const cffmpeg h, const char* input);
 void wrap_fn_scale(const cffmpeg h, const int wid, const int hei, const int flags);

--
Gitblit v1.8.0