Index: media/formats/mp2t/mp2t_stream_parser.h |
diff --git a/media/formats/mp2t/mp2t_stream_parser.h b/media/formats/mp2t/mp2t_stream_parser.h |
index d013ee48796fd1cf44bb576748dffc4c698401df..7c5c6951c3875b58b765ae21cb62cfd2aef8213e 100644 |
--- a/media/formats/mp2t/mp2t_stream_parser.h |
+++ b/media/formats/mp2t/mp2t_stream_parser.h |
@@ -46,8 +46,6 @@ class MEDIA_EXPORT Mp2tStreamParser : public StreamParser { |
bool Parse(const uint8_t* buf, int size) override; |
private: |
- typedef std::map<int, PidState*> PidMap; |
- |
struct BufferQueueWithConfig { |
BufferQueueWithConfig(bool is_cfg_sent, |
const AudioDecoderConfig& audio_cfg, |
@@ -114,7 +112,7 @@ class MEDIA_EXPORT Mp2tStreamParser : public StreamParser { |
ByteQueue ts_byte_queue_; |
// List of PIDs and their state. |
- PidMap pids_; |
+ std::map<int, std::unique_ptr<PidState>> pids_; |
// Selected audio and video PIDs. |
int selected_audio_pid_; |