From f238d052479dbbe0a8d97e231ff74984bf748903 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期二, 19 十一月 2019 09:13:11 +0800
Subject: [PATCH] update

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

diff --git a/libcffmpeg.c b/libcffmpeg.c
index 7c30caf..9992f2d 100644
--- a/libcffmpeg.c
+++ b/libcffmpeg.c
@@ -177,7 +177,7 @@
     
     uint8_t *out = NULL;
     const int flag = fn_encode(hdl, (uint8_t*)in, w, h, &out, out_size, key);
-    if (flag > 0 && out != NULL) {
+    if (flag == 0 && out != NULL) {
         return out;
     }
     *out_size = 0;

--
Gitblit v1.8.0