diff options
author | acolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-30 21:04:13 +0000 |
---|---|---|
committer | acolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-30 21:04:13 +0000 |
commit | 898271fc1f5d8da5ac517b45540f03e1e2be8043 (patch) | |
tree | 0209e48667ecd914443f7d181a0299f9b2fa36dc /media/webm/webm_info_parser.h | |
parent | 12c561d3a704e6ca0a8b20e3821c94d2de14af91 (diff) | |
download | chromium_src-898271fc1f5d8da5ac517b45540f03e1e2be8043.zip chromium_src-898271fc1f5d8da5ac517b45540f03e1e2be8043.tar.gz chromium_src-898271fc1f5d8da5ac517b45540f03e1e2be8043.tar.bz2 |
Improve ChunkDemuxer so AppendData() calls no longer have to be done on element boundries.
BUG=86536
TEST=ChunkDemuxerTest::TestAppendingInPieces
Review URL: http://codereview.chromium.org/7981024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103543 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/webm/webm_info_parser.h')
-rw-r--r-- | media/webm/webm_info_parser.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/media/webm/webm_info_parser.h b/media/webm/webm_info_parser.h index 6391f8b..37cf01c 100644 --- a/media/webm/webm_info_parser.h +++ b/media/webm/webm_info_parser.h @@ -17,8 +17,9 @@ class WebMInfoParser : public WebMParserClient { // Parses a WebM Info element in |buf|. // - // Returns the number of bytes parsed on success. Returns -1 - // on error. + // Returns -1 if the parse fails. + // Returns 0 if more data is needed. + // Returns the number of bytes parsed on success. int Parse(const uint8* buf, int size); int64 timecode_scale() const { return timecode_scale_; } |