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

Unified Diff: media/filters/opus_audio_decoder.h

Issue 239423005: Wire up codec_delay() to MP3StreamParser and FFmpegAudioDecoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ResetTimestampState() on config change. 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/filters/ffmpeg_audio_decoder.cc ('k') | media/filters/opus_audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/opus_audio_decoder.h
diff --git a/media/filters/opus_audio_decoder.h b/media/filters/opus_audio_decoder.h
index 2fad5a8fc4db8d316af6ca3c25ec3106bc596d25..d0dfcf07b3ebdcabae02135d36b5ffcda9ef1e2b 100644
--- a/media/filters/opus_audio_decoder.h
+++ b/media/filters/opus_audio_decoder.h
@@ -66,16 +66,10 @@ class MEDIA_EXPORT OpusAudioDecoder : public AudioDecoder {
// happens.
int frames_to_discard_;
- // Number of frames to be discarded at the start of the stream. This value
- // is typically the CodecDelay value from the container. This value should
- // only be applied when input timestamp is |start_input_timestamp_|.
- int frame_delay_at_start_;
+ // When the input timestamp is |start_input_timestamp_| the decoder needs to
+ // drop |config_.codec_delay()| frames.
base::TimeDelta start_input_timestamp_;
- // Timestamp to be subtracted from all the frames. This is typically computed
- // from the CodecDelay value in the container.
- base::TimeDelta timestamp_offset_;
-
DISALLOW_IMPLICIT_CONSTRUCTORS(OpusAudioDecoder);
};
« no previous file with comments | « media/filters/ffmpeg_audio_decoder.cc ('k') | media/filters/opus_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698