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

Unified Diff: media/filters/ffmpeg_audio_decoder.h

Issue 259453003: Introduce AudioDiscardHelper. Refactor audio decoders to use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix x64 type. Created 6 years, 8 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
« no previous file with comments | « media/base/test_helpers.cc ('k') | media/filters/ffmpeg_audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_audio_decoder.h
diff --git a/media/filters/ffmpeg_audio_decoder.h b/media/filters/ffmpeg_audio_decoder.h
index 59e4629477f3b2aa09cdb81a10a8543c6341404e..ea3bc4659562d0d8ce718d73a0559a1855d6119f 100644
--- a/media/filters/ffmpeg_audio_decoder.h
+++ b/media/filters/ffmpeg_audio_decoder.h
@@ -24,7 +24,7 @@ class SingleThreadTaskRunner;
namespace media {
-class AudioTimestampHelper;
+class AudioDiscardHelper;
class DecoderBuffer;
class MEDIA_EXPORT FFmpegAudioDecoder : public AudioDecoder {
@@ -81,12 +81,7 @@ class MEDIA_EXPORT FFmpegAudioDecoder : public AudioDecoder {
// AVSampleFormat initially requested; not Chrome's SampleFormat.
int av_sample_format_;
- // Used for computing output timestamps.
- scoped_ptr<AudioTimestampHelper> output_timestamp_helper_;
- base::TimeDelta last_input_timestamp_;
-
- // Number of frames to drop before generating output buffers.
- int output_frames_to_drop_;
+ scoped_ptr<AudioDiscardHelper> discard_helper_;
// Since multiple frames may be decoded from the same packet we need to queue
// them up.
« no previous file with comments | « media/base/test_helpers.cc ('k') | media/filters/ffmpeg_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698