commit | 6f5aae1bcba130d5b8092a19fca3627aa565df56 | [log] [tgz] |
---|---|---|
author | Andreas Huber <andih@google.com> | Fri Jun 11 09:22:48 2010 -0700 |
committer | Andreas Huber <andih@google.com> | Fri Jun 11 09:22:48 2010 -0700 |
tree | 9c374a2bfe07516f509271a33e5efb9269547f8d | |
parent | ddbdb35d176266b5ab64c30178f5cb76c5b1b4b4 [diff] |
Fix a typo in NuCachedSource2 that would trigger an assert near the end of a stream. Change-Id: I963ad7074b830d553b67c8925efd5369d0b7a5b9
diff --git a/media/libstagefright/NuCachedSource2.cpp b/media/libstagefright/NuCachedSource2.cpp index 63ba000..6727c73 100644 --- a/media/libstagefright/NuCachedSource2.cpp +++ b/media/libstagefright/NuCachedSource2.cpp
@@ -416,7 +416,7 @@ return mFinalStatus; } - size_t avail = mCache->totalSize() - offset; + size_t avail = mCache->totalSize() - delta; mCache->copy(delta, data, avail); return avail;