| 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);
|
|
|