We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3475ebf + 90ba107 commit beedd86Copy full SHA for beedd86
1 file changed
media/libstagefright/MPEG4Extractor.cpp
@@ -1972,6 +1972,12 @@ status_t MPEG4Source::read(
1972
sampleIndex, &syncSampleIndex, findFlags);
1973
}
1974
1975
+ uint32_t sampleTime;
1976
+ if (err == OK) {
1977
+ err = mSampleTable->getMetaDataForSample(
1978
+ sampleIndex, NULL, NULL, &sampleTime);
1979
+ }
1980
+
1981
if (err != OK) {
1982
if (err == ERROR_OUT_OF_RANGE) {
1983
// An attempt to seek past the end of the stream would
@@ -1984,10 +1990,6 @@ status_t MPEG4Source::read(
1984
1990
return err;
1985
1991
1986
1992
1987
- uint32_t sampleTime;
1988
- CHECK_EQ((status_t)OK, mSampleTable->getMetaDataForSample(
1989
- sampleIndex, NULL, NULL, &sampleTime));
-
1993
if (mode == ReadOptions::SEEK_CLOSEST) {
1994
targetSampleTimeUs = (sampleTime * 1000000ll) / mTimescale;
1995
0 commit comments