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

Unified Diff: media/filters/ffmpeg_demuxer.h

Issue 2284923003: Implement support for multiple tracks in FFmpegDemuxer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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 | « no previous file | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_demuxer.h
diff --git a/media/filters/ffmpeg_demuxer.h b/media/filters/ffmpeg_demuxer.h
index 7e65cb49cd2c24488ec30d1d6879fe09e0540406..a3a065d1ea6ce99657756beb670112cb71f68eaa 100644
--- a/media/filters/ffmpeg_demuxer.h
+++ b/media/filters/ffmpeg_demuxer.h
@@ -32,7 +32,6 @@
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_vector.h"
#include "base/threading/thread.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/decoder_buffer.h"
@@ -45,6 +44,7 @@
#include "media/filters/blocking_url_protocol.h"
// FFmpeg forward declarations.
+struct AVFormatContext;
struct AVPacket;
struct AVRational;
struct AVStream;
@@ -253,6 +253,8 @@ class MEDIA_EXPORT FFmpegDemuxer : public Demuxer {
void OnOpenContextDone(const PipelineStatusCB& status_cb, bool result);
void OnFindStreamInfoDone(const PipelineStatusCB& status_cb, int result);
+ void LogMetadata(AVFormatContext* avctx, base::TimeDelta max_duration);
+
// FFmpeg callbacks during seeking.
void OnSeekFrameDone(int result);
@@ -309,7 +311,7 @@ class MEDIA_EXPORT FFmpegDemuxer : public Demuxer {
//
// Once initialized, operations on FFmpegDemuxerStreams should be carried out
// on the demuxer thread.
- typedef ScopedVector<FFmpegDemuxerStream> StreamVector;
+ using StreamVector = std::vector<std::unique_ptr<FFmpegDemuxerStream>>;
StreamVector streams_;
// Provides asynchronous IO to this demuxer. Consumed by |url_protocol_| to
@@ -351,7 +353,7 @@ class MEDIA_EXPORT FFmpegDemuxer : public Demuxer {
const MediaTracksUpdatedCB media_tracks_updated_cb_;
- std::map<MediaTrack::Id, const DemuxerStream*> track_id_to_demux_stream_map_;
+ std::map<MediaTrack::Id, DemuxerStream*> track_id_to_demux_stream_map_;
// NOTE: Weak pointers must be invalidated before all other member variables.
base::WeakPtrFactory<FFmpegDemuxer> weak_factory_;
« no previous file with comments | « no previous file | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698