virtual ~EsParserAdts();
// EsParser implementation.
- virtual bool Parse(const uint8* buf, int size,
- base::TimeDelta pts,
- DecodeTimestamp dts) OVERRIDE;
- virtual void Flush() OVERRIDE;
- virtual void Reset() OVERRIDE;
+ virtual void Flush() override;
private:
- // Used to link a PTS with a byte position in the ES stream.
- typedef std::pair<int64, base::TimeDelta> EsPts;
- typedef std::list<EsPts> EsPtsList;
-
struct AdtsFrame;
+ // EsParser implementation.
+ virtual bool ParseFromEsQueue() override;
+ virtual void ResetInternal() override;
+
// Synchronize the stream on an ADTS syncword (consuming bytes from
// |es_queue_| if needed).
// Returns true when a full ADTS frame has been found: in that case
// (mp4a.40.5 in the codecs parameter).
bool sbr_in_mimetype_;
- // Bytes of the ES stream that have not been emitted yet.
- scoped_ptr<media::OffsetByteQueue> es_queue_;
-
- // List of PTS associated with a position in the ES stream.
- EsPtsList pts_list_;
-
// Interpolated PTS for frames that don't have one.
scoped_ptr<AudioTimestampHelper> audio_timestamp_helper_;