MediaExtractor: clarify EOS behavior for local files

am: e6b987c569

Change-Id: Idb83eec7f13fe555d4fec262561de5dc3ba22591
This commit is contained in:
Robert Shih
2016-09-15 20:10:01 +00:00
committed by android-build-merger

View File

@@ -496,6 +496,11 @@ final public class MediaExtractor {
/**
* Advance to the next sample. Returns false if no more sample data
* is available (end of stream).
*
* When extracting a local file, the behaviors of {@link #advance} and
* {@link #readSampleData} are undefined in presence of concurrent
* writes to the same local file; more specifically, end of stream
* could be signalled earlier than expected.
*/
public native boolean advance();