shaka-packager/packager/media/formats/webm
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
..
cluster_builder.cc Make webm parser compile and unittest pass 2015-10-16 15:51:56 -07:00
cluster_builder.h Adjust webm code for packager 2015-10-16 15:46:36 -07:00
encrypted_segmenter_unittest.cc Add encryption support to WebM. 2016-01-15 11:51:41 -08:00
encryptor.cc Add encryption support to WebM. 2016-01-15 11:51:41 -08:00
encryptor.h Add encryption support to WebM. 2016-01-15 11:51:41 -08:00
mkv_writer.cc Added WebM muxer. 2015-12-15 20:34:44 +00:00
mkv_writer.h Added WebM muxer. 2015-12-15 20:34:44 +00:00
multi_segment_segmenter.cc Added unit tests for WebM Segmenters. 2016-01-07 17:07:02 +00:00
multi_segment_segmenter.h Added WebM muxer. 2015-12-15 20:34:44 +00:00
multi_segment_segmenter_unittest.cc Add encryption support to WebM. 2016-01-15 11:51:41 -08:00
seek_head.cc Added WebM muxer. 2015-12-15 20:34:44 +00:00
seek_head.h Added WebM muxer. 2015-12-15 20:34:44 +00:00
segmenter.cc Add encryption support to WebM. 2016-01-15 11:51:41 -08:00
segmenter.h Add encryption support to WebM. 2016-01-15 11:51:41 -08:00
segmenter_test_base.cc Handle side data properly in webm 2016-01-09 00:32:08 +00:00
segmenter_test_base.h Add encryption support to WebM. 2016-01-15 11:51:41 -08:00
single_segment_segmenter.cc Added unit tests for WebM Segmenters. 2016-01-07 17:07:02 +00:00
single_segment_segmenter.h Added WebM muxer. 2015-12-15 20:34:44 +00:00
single_segment_segmenter_unittest.cc Add encryption support to WebM. 2016-01-15 11:51:41 -08:00
tracks_builder.cc Adjust webm code for packager 2015-10-16 15:46:36 -07:00
tracks_builder.h Adjust webm code for packager 2015-10-16 15:46:36 -07:00
two_pass_single_segment_segmenter.cc Added unit tests for WebM Segmenters. 2016-01-07 17:07:02 +00:00
two_pass_single_segment_segmenter.h Added unit tests for WebM Segmenters. 2016-01-07 17:07:02 +00:00
webm.gyp Add WebM decryption support 2016-01-21 16:59:58 -08:00
webm_audio_client.cc Add support for DTS in ESDS. Needed to handle DTS audio generated by FFMPEG. 2016-01-06 22:30:52 +00:00
webm_audio_client.h Additional clean ups on comments and TODOs 2015-10-19 17:23:46 +00:00
webm_cluster_parser.cc Handle possible NewSampleEvent before ParserInitEvent 2016-01-22 17:50:54 -08:00
webm_cluster_parser.h Handle possible NewSampleEvent before ParserInitEvent 2016-01-22 17:50:54 -08:00
webm_cluster_parser_unittest.cc Handle possible NewSampleEvent before ParserInitEvent 2016-01-22 17:50:54 -08:00
webm_constants.cc Adjust webm code for packager 2015-10-16 15:46:36 -07:00
webm_constants.h Additional clean ups on comments and TODOs 2015-10-19 17:23:46 +00:00
webm_content_encodings.cc Adjust webm code for packager 2015-10-16 15:46:36 -07:00
webm_content_encodings.h Additional clean ups on comments and TODOs 2015-10-19 17:23:46 +00:00
webm_content_encodings_client.cc Adjust webm code for packager 2015-10-16 15:46:36 -07:00
webm_content_encodings_client.h Additional clean ups on comments and TODOs 2015-10-19 17:23:46 +00:00
webm_content_encodings_client_unittest.cc Additional clean ups on comments and TODOs 2015-10-19 17:23:46 +00:00
webm_crypto_helpers.cc Add WebM decryption support 2016-01-21 16:59:58 -08:00
webm_crypto_helpers.h Additional clean ups on comments and TODOs 2015-10-19 17:23:46 +00:00
webm_info_parser.cc Adjust webm code for packager 2015-10-16 15:46:36 -07:00
webm_info_parser.h Additional clean ups on comments and TODOs 2015-10-19 17:23:46 +00:00
webm_media_parser.cc Handle possible NewSampleEvent before ParserInitEvent 2016-01-22 17:50:54 -08:00
webm_media_parser.h Handle possible NewSampleEvent before ParserInitEvent 2016-01-22 17:50:54 -08:00
webm_muxer.cc Add encryption support to WebM. 2016-01-15 11:51:41 -08:00
webm_muxer.h Added WebM muxer. 2015-12-15 20:34:44 +00:00
webm_parser.cc Adjust webm code for packager 2015-10-16 15:46:36 -07:00
webm_parser.h Additional clean ups on comments and TODOs 2015-10-19 17:23:46 +00:00
webm_parser_unittest.cc Use StrEq for string comparison in webm_parser_unittest 2015-10-22 17:40:11 -07:00
webm_tracks_parser.cc Make webm parser compile and unittest pass 2015-10-16 15:51:56 -07:00
webm_tracks_parser.h Additional clean ups on comments and TODOs 2015-10-19 17:23:46 +00:00
webm_tracks_parser_unittest.cc Make webm parser compile and unittest pass 2015-10-16 15:51:56 -07:00
webm_video_client.cc VP9 codec string from bitstream and subsample encryption support 2015-12-30 21:39:34 +00:00
webm_video_client.h Additional clean ups on comments and TODOs 2015-10-19 17:23:46 +00:00
webm_webvtt_parser.cc Adjust webm code for packager 2015-10-16 15:46:36 -07:00
webm_webvtt_parser.h Additional clean ups on comments and TODOs 2015-10-19 17:23:46 +00:00
webm_webvtt_parser_unittest.cc Adjust webm code for packager 2015-10-16 15:46:36 -07:00