29 TsStreamType stream_type,
30 const NewStreamInfoCB& new_stream_info_cb,
31 const EmitSampleCB& emit_sample_cb,
32 bool sbr_in_mimetype);
36 bool Parse(
const uint8_t* buf,
int size, int64_t pts, int64_t dts)
override;
37 bool Flush()
override;
38 void Reset()
override;
45 typedef std::pair<int, int64_t> EsPts;
46 typedef std::list<EsPts> EsPtsList;
50 bool UpdateAudioConfiguration(
const AudioHeader& audio_header);
53 void DiscardEs(
int nbytes);
55 const TsStreamType stream_type_;
56 std::unique_ptr<AudioHeader> audio_header_;
61 NewStreamInfoCB new_stream_info_cb_;
62 EmitSampleCB emit_sample_cb_;
66 bool sbr_in_mimetype_;
75 std::unique_ptr<AudioTimestampHelper> audio_timestamp_helper_;
77 std::shared_ptr<StreamInfo> last_audio_decoder_config_;