Index: media/filters/ffmpeg_demuxer.h |
diff --git a/media/filters/ffmpeg_demuxer.h b/media/filters/ffmpeg_demuxer.h |
index 2c113bee1dd5b3c3ac19fbf7a184fa858e34e3d3..640f9cc0997c3ef33e33346697fbe572575b9beb 100644 |
--- a/media/filters/ffmpeg_demuxer.h |
+++ b/media/filters/ffmpeg_demuxer.h |
@@ -149,9 +149,17 @@ class FFmpegDemuxer : public Demuxer { |
// Latest timestamp read on the demuxer thread. |
base::TimeDelta current_timestamp_; |
- // Vector of streams. |
+ // Two vector of streams: |
+ // - |streams_| is indexed for the Demuxer interface GetStream(), which only |
+ // contains supported streams and no NULL entries. |
+ // - |packet_streams_| is indexed to mirror AVFormatContext when dealing |
+ // with AVPackets returned from av_read_frame() and contain NULL entries |
+ // representing unsupported streams where we throw away the data. |
+ // |
+ // Ownership is handled via reference counting. |
typedef std::vector< scoped_refptr<FFmpegDemuxerStream> > StreamVector; |
StreamVector streams_; |
+ StreamVector packet_streams_; |
// Thread handle. |
base::Thread thread_; |