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

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: Comments. 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
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..7a3822101f791e29263347303dec7ba2986d49da 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 {
@@ -82,11 +82,7 @@ class MEDIA_EXPORT FFmpegAudioDecoder : public AudioDecoder {
int av_sample_format_;
// Used for computing output timestamps.
wolenetz 2014/04/29 00:22:44 nit: discard_helper_ is used for more than that. R
DaleCurtis 2014/04/29 00:28:59 Done.
- 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.

Powered by Google App Engine
This is Rietveld 408576698