Merge "DO NOT MERGE - Consider I-Frame at zeroeth position when searching for sync frames" into ics-mr1

This commit is contained in:
James Dong
2011-12-06 12:52:52 -08:00
committed by Android (Google) Code Review

View File

@@ -627,6 +627,14 @@ status_t SampleTable::findSyncSampleNear(
++left;
}
if (left == mNumSyncSamples) {
if (flags == kFlagAfter) {
LOGE("tried to find a sync frame after the last one: %d", left);
return ERROR_OUT_OF_RANGE;
}
}
if (left > 0) {
--left;
}