xuxiuxi
2017-05-11 109ffe9a777658936a38d0c146579a67c60a0d17
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