From 4dae2ed228e0a46915031823cb712d6d288958d7 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 30 三月 2017 09:38:12 +0800
Subject: [PATCH]
---
RtspFace/PL_H264Decoder.cpp | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/RtspFace/PL_H264Decoder.cpp b/RtspFace/PL_H264Decoder.cpp
index 7426bac..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;
}
}
@@ -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