33 TsStreamType stream_type,
34 const NewStreamInfoCB& new_stream_info_cb,
35 const EmitSampleCB& emit_sample_cb,
36 bool sbr_in_mimetype);
40 bool Parse(
const uint8_t* buf,
int size, int64_t pts, int64_t dts)
override;
41 bool Flush()
override;
42 void Reset()
override;
49 typedef std::pair<int, int64_t> EsPts;
50 typedef std::list<EsPts> EsPtsList;
54 bool UpdateAudioConfiguration(
const AudioHeader& audio_header);
57 void DiscardEs(
int nbytes);
59 const TsStreamType stream_type_;
60 std::unique_ptr<AudioHeader> audio_header_;
65 NewStreamInfoCB new_stream_info_cb_;
66 EmitSampleCB emit_sample_cb_;
70 bool sbr_in_mimetype_;
79 std::unique_ptr<AudioTimestampHelper> audio_timestamp_helper_;
81 std::shared_ptr<StreamInfo> last_audio_decoder_config_;