From 6823fe0c82c2f929a10510ad2533f5afcc47b354 Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期二, 19 十二月 2023 11:45:24 +0800
Subject: [PATCH] fix memory leak of FfmpegLoad
---
runtime/websocket/bin/funasr-wss-server-2pass.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/runtime/websocket/bin/funasr-wss-server-2pass.cpp b/runtime/websocket/bin/funasr-wss-server-2pass.cpp
index 40f8f07..965f2a8 100644
--- a/runtime/websocket/bin/funasr-wss-server-2pass.cpp
+++ b/runtime/websocket/bin/funasr-wss-server-2pass.cpp
@@ -25,6 +25,10 @@
}
int main(int argc, char* argv[]) {
+#ifdef _WIN32
+ #include <windows.h>
+ SetConsoleOutputCP(65001);
+#endif
try {
google::InitGoogleLogging(argv[0]);
FLAGS_logtostderr = true;
--
Gitblit v1.9.1