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/base/memory/scoped_ptr.h"
12 #include "packager/media/formats/mp2t/es_parser_h26x.h"
14 namespace edash_packager {
29 const NewStreamInfoCB& new_stream_info_cb,
30 const EmitSampleCB& emit_sample_cb);
34 void Reset()
override;
39 bool ProcessNalu(
const Nalu& nalu,
41 int* pps_id_for_access_unit)
override;
45 bool UpdateVideoDecoderConfig(
int sps_id)
override;
48 NewStreamInfoCB new_stream_info_cb_;
50 scoped_refptr<StreamInfo> last_video_decoder_config_;
51 bool decoder_config_check_pending_;
53 scoped_ptr<H264Parser> h264_parser_;