From 0688756b71b40e0ac60c68af2fa1fe4aaeb1718d Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期一, 13 二月 2017 16:27:41 +0800 Subject: [PATCH] replace log to support android --- RtspFace/PL_H264Decoder.cpp | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RtspFace/PL_H264Decoder.cpp b/RtspFace/PL_H264Decoder.cpp index 7426bac..0391e6a 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,7 @@ } else { - LOG_WARN << "incomplete frame"; + LOG_WARN << "incomplete frame" << std::endl; return false; } } @@ -224,7 +224,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 +234,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