From ab5fd4dec441993eb7b52b98638f2e2860de9c28 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期三, 09 十月 2019 17:08:35 +0800
Subject: [PATCH] bug fix

---
 csrc/wrapper.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/csrc/wrapper.cpp b/csrc/wrapper.cpp
index 2643ce0..0e847bf 100644
--- a/csrc/wrapper.cpp
+++ b/csrc/wrapper.cpp
@@ -435,11 +435,11 @@
     }Conv;
     
     void *CreateConvertor(const int srcW, const int srcH, const int srcFormat,
-                          const int dstW, const int dstH, const int flag){
-        AVPixelFormat pix_fmt = AV_PIX_FMT_BGR24;
+                          const int dstW, const int dstH, const int dstFormat, const int flag){
+        
         auto bridge = new cvbridge(
                 srcW, srcH, srcFormat,
-                dstW, dstH, pix_fmt, flag);
+                dstW, dstH, dstFormat, flag);
         if (!bridge) return NULL;
 
         Conv *c = (Conv*)malloc(sizeof(Conv));

--
Gitblit v1.8.0