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

Unified Diff: media/filters/audio_file_reader.h

Issue 257563007: Don't double correct for discarded codec delay frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style cleanup. Fix rendundant Initialize(). 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/ffmpeg/ffmpeg_common.cc ('k') | media/filters/audio_file_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_file_reader.h
diff --git a/media/filters/audio_file_reader.h b/media/filters/audio_file_reader.h
index 8a4ed276832388ae0462fbcde6aaa9f464fa82ba..e7b7b4b71f8af84af71ba7e3ef38d6f1517eeaa1 100644
--- a/media/filters/audio_file_reader.h
+++ b/media/filters/audio_file_reader.h
@@ -10,6 +10,7 @@
#include "media/base/media_export.h"
struct AVCodecContext;
+struct AVPacket;
namespace base { class TimeDelta; }
@@ -54,7 +55,19 @@ class MEDIA_EXPORT AudioFileReader {
base::TimeDelta GetDuration() const;
int GetNumberOfFrames() const;
+ // Helper methods which allows AudioFileReader to double as a test utility for
+ // demuxing audio files. Returns true if a packet could be demuxed from the
+ // first audio stream in the file, |output_packet| will contain the demuxed
+ // packet then.
+ bool ReadPacketForTesting(AVPacket* output_packet);
+
+ const AVCodecContext* codec_context_for_testing() const {
+ return codec_context_;
+ }
+
private:
+ bool ReadPacket(AVPacket* output_packet);
+
scoped_ptr<FFmpegGlue> glue_;
AVCodecContext* codec_context_;
int stream_index_;
« no previous file with comments | « media/ffmpeg/ffmpeg_common.cc ('k') | media/filters/audio_file_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698