From 65eb475b323b3b9c28761b4e3009ab3d269963e1 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期四, 22 十月 2020 11:13:50 +0800
Subject: [PATCH] h264 cuvid av bsf and rec

---
 goffmpeg.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/goffmpeg.go b/goffmpeg.go
index 393cd04..52a3a7d 100644
--- a/goffmpeg.go
+++ b/goffmpeg.go
@@ -112,8 +112,8 @@
 				C.wrap_fn_destroy(unsafe.Pointer(libcffmpeg), f)
 			}
 			FreeFFmpeg()
+			return nil
 		}
-		return nil
 	}
 
 	return &GoFFMPEG{
@@ -142,8 +142,8 @@
 				C.wrap_fn_destroy(unsafe.Pointer(libcffmpeg), f)
 			}
 			FreeFFmpeg()
+			return nil
 		}
-		return nil
 	}
 
 	return &GoFFMPEG{

--
Gitblit v1.8.0