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

Unified Diff: media/filters/opus_audio_decoder.cc

Issue 63153003: mac: Prepare for -Wunused-functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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
« no previous file with comments | « media/audio/mac/audio_auhal_mac.cc ('k') | net/cert/ct_serialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/opus_audio_decoder.cc
diff --git a/media/filters/opus_audio_decoder.cc b/media/filters/opus_audio_decoder.cc
index 9d26d39c5a8dcd1d039ddb18cb1a849bd30fdb45..7aa931930aecc1bc249f06fe7e9e73a0f0a57f96 100644
--- a/media/filters/opus_audio_decoder.cc
+++ b/media/filters/opus_audio_decoder.cc
@@ -32,15 +32,6 @@ static uint16 ReadLE16(const uint8* data, size_t data_size, int read_offset) {
return base::ByteSwapToLE16(value);
}
-// Returns true if the decode result was end of stream.
-static inline bool IsEndOfStream(int decoded_size,
- const scoped_refptr<DecoderBuffer>& input) {
- // Two conditions to meet to declare end of stream for this decoder:
- // 1. Opus didn't output anything.
- // 2. An end of stream buffer is received.
- return decoded_size == 0 && input->end_of_stream();
-}
-
static int TimeDeltaToAudioFrames(base::TimeDelta time_delta,
int frame_rate) {
return std::ceil(time_delta.InSecondsF() * frame_rate);
« no previous file with comments | « media/audio/mac/audio_auhal_mac.cc ('k') | net/cert/ct_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698