From 109ffe9a777658936a38d0c146579a67c60a0d17 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 11 五月 2017 17:48:48 +0800
Subject: [PATCH] 

---
 RtspFace/PL_H264Decoder.cpp |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/RtspFace/PL_H264Decoder.cpp b/RtspFace/PL_H264Decoder.cpp
index 55a130c..87d8735 100644
--- a/RtspFace/PL_H264Decoder.cpp
+++ b/RtspFace/PL_H264Decoder.cpp
@@ -136,7 +136,7 @@
 
 	if (!avCodec)   
 	{  
-		LOG_WARN << "codec not found!";  
+		LOG_WARN << "codec not found!" << std::endl;  
 		return false;  
 	}  
 
@@ -185,7 +185,7 @@
 
 	if (av_packet_from_data(&packet, buffer, buffSize) != 0)
 	{  
-		LOG_WARN << "av_packet_from_data error";
+		LOG_WARN << "av_packet_from_data error" << std::endl;
 		return false;
 	}
 	
@@ -200,7 +200,8 @@
 	}
 	else
 	{
-		LOG_WARN << "incomplete frame";
+		//#todo  sps sps changing
+		LOG_WARN << "incomplete frame" << std::endl;
 		return false;
 	}
 }
@@ -216,7 +217,7 @@
 		if (manager == NULL)
 			return false;
 		
-		std::string fmtp(manager->get_global_param(PLGP_RTSP_FMTP));
+		std::string fmtp(manager->get_param(PLGP_RTSP_FMTP));
 		if (fmtp.empty())
 			return false;
 		
@@ -224,7 +225,7 @@
 		SPropRecord *p_record = parseSPropParameterSets(fmtp.c_str(), numSPropRecords);
 		if (numSPropRecords < 2)
 		{
-			LOG_WARN << "numSPropRecords < 2";
+			LOG_WARN << "numSPropRecords < 2" << std::endl;
 			return false;
 		}
 
@@ -234,7 +235,7 @@
 		bool ret = initH264DecoderEnv(in, sps.sPropBytes, sps.sPropLength, pps.sPropBytes, pps.sPropLength);
 		if (!ret)
 		{
-			LOG_ERROR << "initH264DecoderEnv error";
+			LOG_ERROR << "initH264DecoderEnv error" << std::endl;
 			return false;
 		}
 		else

--
Gitblit v1.8.0