Skip to content

Commit

Permalink
Merge "DO NOT MERGE - Consider I-Frame at zeroeth position when searc…
Browse files Browse the repository at this point in the history
…hing for sync frames" into ics-mr1
  • Loading branch information
James Dong authored and Android (Google) Code Review committed Dec 6, 2011
2 parents 05d6306 + cb06491 commit 6b8b5a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions media/libstagefright/SampleTable.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6b8b5a0

Please sign in to comment.