优化日志

This commit is contained in:
xiongziliang
2018-04-09 11:33:19 +08:00
parent 9fe6587bd3
commit 6a9bc8aca5
8 changed files with 9 additions and 9 deletions

View File

@@ -226,7 +226,7 @@ inline bool MediaReader::readVideoSample(int iTimeInc) {
break;
}
}else{
FatalL << "读取视频失败:" << iIdx + 1;
ErrorL << "读取视频失败:" << iIdx + 1;
}
}
m_video_current = iIdx;
@@ -248,7 +248,7 @@ inline bool MediaReader::readAudioSample(int iTimeInc) {
writeAAC(m_adts.data, m_adts.aac_frame_length, (double) m_audio_ms * i / m_audio_num_samples);
}
}else{
FatalL << "读取音频失败:" << i+ 1;
ErrorL << "读取音频失败:" << i+ 1;
}
}
m_audio_current = iNextSample;

View File

@@ -132,6 +132,6 @@ bool getAVCInfo(const string& strSps,int &iVideoWidth, int &iVideoHeight, float
}
h264GetWidthHeight(&tH264SpsInfo, &iVideoWidth, &iVideoHeight);
h264GeFramerate(&tH264SpsInfo, &iVideoFps);
//FatalL << iVideoWidth << " " << iVideoHeight << " " << iVideoFps;
//ErrorL << iVideoWidth << " " << iVideoHeight << " " << iVideoFps;
return true;
}