From d0b8204e3939e1e2d841a90ea254bc4b91309ab5 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期日, 19 一月 2020 13:32:13 +0800
Subject: [PATCH] update ffmepg gpu balance

---
 libcffmpeg.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/libcffmpeg.c b/libcffmpeg.c
index 616c046..cbdc727 100644
--- a/libcffmpeg.c
+++ b/libcffmpeg.c
@@ -82,7 +82,10 @@
 char * wrap_fn_get_gb28181_pic(void *lib, const char *rtspUrl, int *retDataLen){
     if (!fn_get_gb28181_pic){
         fn_get_gb28181_pic = (lib_cffmpeg_get_gb28181_pic)dlsym(lib, "c_ffmpeg_get_gb28181_pic");
-        if(!fn_get_gb28181_pic) return;
+        if(!fn_get_gb28181_pic) {
+            *retDataLen = 0;
+            return NULL;
+        }
     }
     return fn_get_gb28181_pic(rtspUrl, retDataLen);
 }

--
Gitblit v1.8.0