shaka-packager/packager/media/formats/mp4
KongQun Yang 2c3aed4842 Handle possible NewSampleEvent before ParserInitEvent
For WebM contents, it is possible that we may receive some NewSampleEvent
before receiving ParserInitEvent. This is because init event is fired
after analyzing a video block which could come after an audio block.

Also modified Flush() function to return a bool to indicate whether the
the flush is successful and whether the samples are handled correctly.

And added macro to ensure Flush() and Parse() results are handled.

Fixes #71

Change-Id: I2294d6f529f54e4578344916559bb1bc116c745a
2016-01-22 17:50:54 -08:00
..
aac_audio_specific_config.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
aac_audio_specific_config.h Move source code into packager directory 2014-10-02 12:32:14 -07:00
aac_audio_specific_config_unittest.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
box.cc Define SampleEncryption 'senc' box 2015-12-31 01:26:18 +00:00
box.h Define SampleEncryption 'senc' box 2015-12-31 01:26:18 +00:00
box_buffer.h Define SampleEncryption 'senc' box 2015-12-31 01:26:18 +00:00
box_definitions.cc Support Dolby audio Enhanced AC3 in ISO BMFF (Part 2) 2016-01-15 14:44:06 -08:00
box_definitions.h Support Dolby audio Enhanced AC3 in ISO BMFF (Part 2) 2016-01-15 14:44:06 -08:00
box_definitions_comparison.h Support Dolby audio Enhanced AC3 in ISO BMFF (Part 2) 2016-01-15 14:44:06 -08:00
box_definitions_unittest.cc Support Dolby audio Enhanced AC3 in ISO BMFF (Part 2) 2016-01-15 14:44:06 -08:00
box_reader.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
box_reader.h Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
box_reader_unittest.cc Some code clean ups in box definitions 2015-12-21 18:40:05 +00:00
chunk_info_iterator.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
chunk_info_iterator.h Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
chunk_info_iterator_unittest.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
composition_offset_iterator.cc Handle large composition offset greater than (1<<31) properly 2015-08-07 18:51:49 +00:00
composition_offset_iterator.h Handle large composition offset greater than (1<<31) properly 2015-08-07 18:51:49 +00:00
composition_offset_iterator_unittest.cc Handle large composition offset greater than (1<<31) properly 2015-08-07 18:51:49 +00:00
decoding_time_iterator.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
decoding_time_iterator.h Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
decoding_time_iterator_unittest.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
encrypting_fragmenter.cc Block align frames in superframe for vp9 cenc 2016-01-07 20:08:03 +00:00
encrypting_fragmenter.h Implement vp8 bit stream parser. 2015-12-30 21:40:10 +00:00
es_descriptor.cc Add support for DTS in ESDS. Needed to handle DTS audio generated by FFMPEG. 2016-01-06 22:30:52 +00:00
es_descriptor.h Add support for DTS in ESDS. Needed to handle DTS audio generated by FFMPEG. 2016-01-06 22:30:52 +00:00
es_descriptor_unittest.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
fourccs.h Support Dolby audio Enhanced AC3 in ISO BMFF (Part 2) 2016-01-15 14:44:06 -08:00
fragmenter.cc Handle side data properly in webm 2016-01-09 00:32:08 +00:00
fragmenter.h Implement SampleEncryption box parsing and generation 2016-01-05 01:56:06 +00:00
key_rotation_fragmenter.cc VP9 codec string from bitstream and subsample encryption support 2015-12-30 21:39:34 +00:00
key_rotation_fragmenter.h VP9 codec string from bitstream and subsample encryption support 2015-12-30 21:39:34 +00:00
mp4.gyp Implement SampleEncryption box parsing and generation 2016-01-05 01:56:06 +00:00
mp4_media_parser.cc Handle possible NewSampleEvent before ParserInitEvent 2016-01-22 17:50:54 -08:00
mp4_media_parser.h Handle possible NewSampleEvent before ParserInitEvent 2016-01-22 17:50:54 -08:00
mp4_media_parser_unittest.cc Handle possible NewSampleEvent before ParserInitEvent 2016-01-22 17:50:54 -08:00
mp4_muxer.cc Support Dolby audio Enhanced AC3 in ISO BMFF (Part 2) 2016-01-15 14:44:06 -08:00
mp4_muxer.h Define SampleEncryption 'senc' box 2015-12-31 01:26:18 +00:00
multi_segment_segmenter.cc Pass sample duration to MPD 2015-06-23 13:12:17 -07:00
multi_segment_segmenter.h Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
rcheck.h Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
segmenter.cc Add version information in generated outputs 2016-01-08 19:08:56 +00:00
segmenter.h Add version information in generated outputs 2016-01-08 19:08:56 +00:00
single_segment_segmenter.cc Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
single_segment_segmenter.h Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
sync_sample_iterator.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
sync_sample_iterator.h Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
sync_sample_iterator_unittest.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
track_run_iterator.cc Add WebM decryption support 2016-01-21 16:59:58 -08:00
track_run_iterator.h Implement SampleEncryption box parsing and generation 2016-01-05 01:56:06 +00:00
track_run_iterator_unittest.cc Implement SampleEncryption box parsing and generation 2016-01-05 01:56:06 +00:00