Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: services/media/framework/parts/reader.h

Issue 1686363002: Motown: ffmpeg implementations of framework 'parts' (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Changed the way AVBuffer allocation/deallocation is done in the ffmpeg audio decoder. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: services/media/framework/parts/reader.h
diff --git a/services/media/framework/parts/reader.h b/services/media/framework/parts/reader.h
index dc07ad855c9b138ec35a3ee351f15f9c53866c9d..8cf9c2017ee8a6e895ba965c6f328199d2713cd0 100644
--- a/services/media/framework/parts/reader.h
+++ b/services/media/framework/parts/reader.h
@@ -27,14 +27,14 @@ class Reader {
// Reads the given number of bytes into the buffer and returns the number of
// bytes read. Returns -1 if the operation fails.
- virtual size_t Read(uint8* buffer, int bytes_to_read) = 0;
+ virtual size_t Read(uint8_t* buffer, size_t bytes_to_read) = 0;
// Gets the current position or -1 if the operation fails.
virtual int64_t GetPosition() const = 0;
// Seeks to the given position and returns it. Returns -1 if the operation
// fails.
- virtual int64_t SetPosition(int64 position) = 0;
+ virtual int64_t SetPosition(int64_t position) = 0;
// Returns the file size. Returns -1 if the operation fails or the size isn't
// known.

Powered by Google App Engine
This is Rietveld 408576698