shaka-packager/packager/media/base
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
..
test Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
aes_encryptor.cc Allow query stream info without decryption 2014-10-15 01:32:40 +00:00
aes_encryptor.h Add encryption support to WebM. 2016-01-15 11:51:41 -08:00
aes_encryptor_unittest.cc Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
audio_stream_info.cc Support Dolby audio Enhanced AC3 in ISO BMFF (Part 2) 2016-01-15 14:44:06 -08:00
audio_stream_info.h Support Dolby audio Enhanced AC3 in ISO BMFF (Part 2) 2016-01-15 14:44:06 -08:00
audio_timestamp_helper.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
audio_timestamp_helper.h Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
audio_timestamp_helper_unittest.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
bit_reader.cc Implement vp8 bit stream parser. 2015-12-30 21:40:10 +00:00
bit_reader.h Implement vp8 bit stream parser. 2015-12-30 21:40:10 +00:00
bit_reader_unittest.cc Implement vp8 bit stream parser. 2015-12-30 21:40:10 +00:00
buffer_reader.cc Box definitions for WebVTT 2015-12-22 14:05:50 -08:00
buffer_reader.h Box definitions for WebVTT 2015-12-22 14:05:50 -08:00
buffer_writer.cc move mpd_options to its own file 2014-12-15 19:04:40 +00:00
buffer_writer.h Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
buffer_writer_unittest.cc Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
byte_queue.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
byte_queue.h Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
closure_thread.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
closure_thread.h Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
closure_thread_unittest.cc Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
container_names.cc Added stream descriptor for output format. 2015-12-16 15:10:35 -08:00
container_names.h Added stream descriptor for output format. 2015-12-16 15:10:35 -08:00
container_names_unittest.cc Added stream descriptor for output format. 2015-12-16 15:10:35 -08:00
decrypt_config.cc Add WebM decryption support 2016-01-21 16:59:58 -08:00
decrypt_config.h Add WebM decryption support 2016-01-21 16:59:58 -08:00
decryptor_source.cc Add WebM decryption support 2016-01-21 16:59:58 -08:00
decryptor_source.h Add WebM decryption support 2016-01-21 16:59:58 -08:00
decryptor_source_unittest.cc Add WebM decryption support 2016-01-21 16:59:58 -08:00
demuxer.cc Handle possible NewSampleEvent before ParserInitEvent 2016-01-22 17:50:54 -08:00
demuxer.h Handle possible NewSampleEvent before ParserInitEvent 2016-01-22 17:50:54 -08:00
http_key_fetcher.cc Enable '-Wimplicit-fallthrough' and fix issues 2016-01-06 17:12:49 -08:00
http_key_fetcher.h Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
http_key_fetcher_unittest.cc Move test files in media/base to test directory 2014-10-10 10:33:17 -07:00
key_fetcher.cc KeyFetcher interface and HTTP impl to retrieve keys from the Widevine 2014-10-09 18:19:22 -07:00
key_fetcher.h KeyFetcher interface and HTTP impl to retrieve keys from the Widevine 2014-10-09 18:19:22 -07:00
key_source.cc Make edash-packager outputs predictable for testing 2015-09-29 17:19:59 +00:00
key_source.h Pass content protection information to MuxerListener 2015-07-13 19:03:44 -07:00
limits.h Move source code into packager directory 2014-10-02 12:32:14 -07:00
macros.h Enable '-Wimplicit-fallthrough' and fix issues 2016-01-06 17:12:49 -08:00
media_base.gyp Add WebM decryption support 2016-01-21 16:59:58 -08:00
media_parser.h Handle possible NewSampleEvent before ParserInitEvent 2016-01-22 17:50:54 -08:00
media_sample.cc WebVttMediaParser and TextStreamInfo 2015-12-14 13:58:21 -08:00
media_sample.h Add encryption support to WebM. 2016-01-15 11:51:41 -08:00
media_stream.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
media_stream.h Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
muxer.cc Add ProgressListener for progress updates 2015-05-14 19:09:02 -07:00
muxer.h Add ProgressListener for progress updates 2015-05-14 19:09:02 -07:00
muxer_options.cc Add version information in generated outputs 2016-01-08 19:08:56 +00:00
muxer_options.h Add version information in generated outputs 2016-01-08 19:08:56 +00:00
muxer_util.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
muxer_util.h Move source code into packager directory 2014-10-02 12:32:14 -07:00
muxer_util_unittest.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
network_util.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
network_util.h Move source code into packager directory 2014-10-02 12:32:14 -07:00
offset_byte_queue.cc Fix packager crash with corrupted media file 2014-12-23 14:29:59 -08:00
offset_byte_queue.h Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
offset_byte_queue_unittest.cc Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
producer_consumer_queue.h Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
producer_consumer_queue_unittest.cc Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
request_signer.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
request_signer.h Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
rsa_key.cc Use variants of the PKCS#1 PSS functions that specify the MGF1 hash 2015-06-09 18:34:32 -07:00
rsa_key.h Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
rsa_key_unittest.cc Switch to boringssl. Also update curl accordingly. 2015-10-16 20:10:38 +00:00
status.cc Cleaned up Status class. 2016-01-05 01:02:34 +00:00
status.h Cleaned up Status class. 2016-01-05 01:02:34 +00:00
status_test_util_unittest.cc Move test files in media/base to test directory 2014-10-10 10:33:17 -07:00
status_unittest.cc Remove (D)CHECK_OK and usage of MemoryMappedFile 2014-10-08 16:19:31 -07:00
stream_info.cc Make edash-packager outputs predictable for testing 2015-09-29 17:19:59 +00:00
stream_info.h Make webm parser compile and unittest pass 2015-10-16 15:51:56 -07:00
text_stream_info.cc WebVttMediaParser and TextStreamInfo 2015-12-14 13:58:21 -08:00
text_stream_info.h WebVttMediaParser and TextStreamInfo 2015-12-14 13:58:21 -08:00
text_track.h Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
text_track_config.cc Adjust webm code for packager 2015-10-16 15:46:36 -07:00
text_track_config.h Adjust webm code for packager 2015-10-16 15:46:36 -07:00
timestamp.h Move source code into packager directory 2014-10-02 12:32:14 -07:00
video_stream_info.cc Replace "pixel aspect ratio" with "pixel_aspect_ratio" in stream info msg 2015-12-09 23:55:01 +00:00
video_stream_info.h VP9 codec string from bitstream and subsample encryption support 2015-12-30 21:39:34 +00:00
widevine_key_source.cc Fix AssetId overflow for classic WVM decryption 2016-01-06 20:18:42 +00:00
widevine_key_source.h Update code to resolve problems due to base updates. 2015-10-16 20:09:56 +00:00
widevine_key_source_unittest.cc Fix AssetId overflow for classic WVM decryption 2016-01-06 20:18:42 +00:00
widevine_pssh_data.proto Add WebM decryption support 2016-01-21 16:59:58 -08:00