Merge pull request #1381 from mstorsjo/silence-warnings

Silence warnings with gcc in GetOptionTid_AVC_NOPREFIX
This commit is contained in:
ruil2 2014-09-23 17:21:54 +08:00
commit cfbf32b3fb

View File

@ -885,13 +885,14 @@ TEST_P (EncodeDecodeTestAPI, GetOptionTid_AVC_NOPREFIX) {
decoder_->GetOption (DECODER_OPTION_TEMPORAL_ID, &iTid);
std::vector<SLostSim>::iterator iter = m_SLostSim.begin();
bool bHasVCL = false;
for (int k = 0; k < m_SLostSim.size(); k++) {
for (unsigned int k = 0; k < m_SLostSim.size(); k++) {
if (IS_VCL_NAL (iter->eNalType, 0) && iter->isLost == false) {
bHasVCL = true;
break;
}
iter++;
}
(void) bHasVCL;
if (iTid != -1) {
ASSERT_EQ (iTid, 0);
}