From b3a8f07c53c479051e427830379779cb56e87736 Mon Sep 17 00:00:00 2001
From: pans <pansen626@sina.com>
Date: 星期六, 30 三月 2019 12:06:17 +0800
Subject: [PATCH] fix bug

---
 QiaoJiaSystem/GB28181DecoderModel/FFmpegDecoderJPG.cpp |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/QiaoJiaSystem/GB28181DecoderModel/FFmpegDecoderJPG.cpp b/QiaoJiaSystem/GB28181DecoderModel/FFmpegDecoderJPG.cpp
index e17ee5b..7fa85cd 100644
--- a/QiaoJiaSystem/GB28181DecoderModel/FFmpegDecoderJPG.cpp
+++ b/QiaoJiaSystem/GB28181DecoderModel/FFmpegDecoderJPG.cpp
@@ -33,6 +33,7 @@
     sws_freeContext(convert_ctx);
 
     DBG("m.size is " << m.size());
+//    LOG_IF();
 
     return m;
 }
@@ -237,8 +238,8 @@
         av_init_packet(&p_this->pkt);
 
         p_this->frame = av_frame_alloc();
-        unsigned int usleepTime = (1000 / p_this->m_fps) - 12;
-        usleepTime *= 1000;
+//        unsigned int usleepTime = (1000 / p_this->m_fps) - 12;
+//        usleepTime *= 1000;
         DBG("===open ok, camid: " << p_this->m_camIdx);
         while (p_this->m_running) {
 #ifdef TestCode
@@ -309,8 +310,9 @@
 //        DBG("emitSigal(\"DecoderImageOK\") after");
 //#endif
 
-            DBG("emitSigal(\"DecoderImageOK\") after");
-            DBG("p_this->m_camIdx is " << p_this->m_camIdx << " queue size is " << p_this->m_rtpQueue.count_queue());
+//            DBG("emitSigal(\"DecoderImageOK\") after");
+
+//            DBG("p_this->m_camIdx is " << p_this->m_camIdx << " queue size is " << p_this->m_rtpQueue.count_queue());
 
 #ifdef TestCode
             {

--
Gitblit v1.8.0