summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorRachad <rachad@google.com>2013-09-04 16:21:35 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-09-04 16:21:35 +0000
commitc85d61964cb6f9b23cd2e82e43d7052b3e7d4fbc (patch)
treecf2acf7760e9285c884732f5b2bdd2947c32f106 /media
parentdf60eff872f276c1a94ab0355b252b73fe61faa9 (diff)
parentfa51e09b30e884fed20b141783a7447599a6563e (diff)
downloadframeworks_av-c85d61964cb6f9b23cd2e82e43d7052b3e7d4fbc.zip
frameworks_av-c85d61964cb6f9b23cd2e82e43d7052b3e7d4fbc.tar.gz
frameworks_av-c85d61964cb6f9b23cd2e82e43d7052b3e7d4fbc.tar.bz2
Merge " Fixed timestamp handling in ESQueue Access Unit parser. This fixes bug b/10294801" into klp-dev
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/mpeg2ts/ESQueue.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/media/libstagefright/mpeg2ts/ESQueue.cpp b/media/libstagefright/mpeg2ts/ESQueue.cpp
index 9f3b19c..8f9c9c8 100644
--- a/media/libstagefright/mpeg2ts/ESQueue.cpp
+++ b/media/libstagefright/mpeg2ts/ESQueue.cpp
@@ -504,15 +504,11 @@ int64_t ElementaryStreamQueue::fetchTimestamp(size_t size) {
if (first) {
timeUs = info->mTimestampUs;
+ first = false;
}
if (info->mLength > size) {
info->mLength -= size;
-
- if (first) {
- info->mTimestampUs = -1;
- }
-
size = 0;
} else {
size -= info->mLength;
@@ -521,7 +517,6 @@ int64_t ElementaryStreamQueue::fetchTimestamp(size_t size) {
info = NULL;
}
- first = false;
}
if (timeUs == 0ll) {