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

Unified Diff: media/filters/ffmpeg_audio_decoder.h

Issue 177333003: Add support for midstream audio configuration changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ABS
Patch Set: Created 6 years, 9 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 0b646197f4823e8e7127f467c79c96425ef2f5aa..dfc1664b04f69c9d6a95d125bd28b8e380a43114 100644
--- a/media/filters/ffmpeg_audio_decoder.h
+++ b/media/filters/ffmpeg_audio_decoder.h
@@ -41,9 +41,6 @@ class MEDIA_EXPORT FFmpegAudioDecoder : public AudioDecoder {
virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer,
const DecodeCB& decode_cb) OVERRIDE;
virtual scoped_refptr<AudioBuffer> GetDecodeOutput() OVERRIDE;
- virtual int bits_per_channel() OVERRIDE;
- virtual ChannelLayout channel_layout() OVERRIDE;
- virtual int samples_per_second() OVERRIDE;
virtual void Reset(const base::Closure& closure) OVERRIDE;
virtual void Stop(const base::Closure& closure) OVERRIDE;
@@ -83,17 +80,10 @@ class MEDIA_EXPORT FFmpegAudioDecoder : public AudioDecoder {
scoped_ptr_malloc<AVCodecContext, ScopedPtrAVFreeContext> codec_context_;
scoped_ptr_malloc<AVFrame, ScopedPtrAVFreeFrame> av_frame_;
- // Decoded audio format.
- int bytes_per_channel_;
- ChannelLayout channel_layout_;
- int channels_;
- int samples_per_second_;
+ AudioDecoderConfig config_;
// AVSampleFormat initially requested; not Chrome's SampleFormat.
int av_sample_format_;
- SampleFormat sample_format_;
-
- AudioDecoderConfig config_;
// Used for computing output timestamps.
scoped_ptr<AudioTimestampHelper> output_timestamp_helper_;

Powered by Google App Engine
This is Rietveld 408576698