5 #ifndef MEDIA_FORMATS_MP2T_ES_PARSER_H264_H_
6 #define MEDIA_FORMATS_MP2T_ES_PARSER_H264_H_
10 #include "packager/base/callback.h"
11 #include "packager/media/formats/mp2t/es_parser_h26x.h"
28 const NewStreamInfoCB& new_stream_info_cb,
29 const EmitSampleCB& emit_sample_cb);
33 void Reset()
override;
38 bool ProcessNalu(
const Nalu& nalu,
40 int* pps_id_for_access_unit)
override;
44 bool UpdateVideoDecoderConfig(
int sps_id)
override;
47 NewStreamInfoCB new_stream_info_cb_;
49 scoped_refptr<StreamInfo> last_video_decoder_config_;
50 bool decoder_config_check_pending_;
52 std::unique_ptr<H264Parser> h264_parser_;