shaka-packager/packager/media/codecs
KongQun Yang 8767d20f38 Fix potential slice header size off by one byte in H265
In H265Parser::ParseSliceHeader, the parser does not handle
byte_alignment() from the spec. byte_alignment() reportedly contains
at least one bit, which is not handled right now.

See Section 7.3.2.12 Rec. ITU-T H.265 v3 (04/2015).

Also added a few size sanity checks in H265Parser to make sure the
code does not crash if an invalid input is provided.

Fixes #383.

Change-Id: I33b31396058fc5ba67a0fc119be5fe56ec9443b0
2018-05-03 18:13:07 +00:00
..
aac_audio_specific_config.cc Support AAC with program_config_element() 2018-05-02 23:21:17 +00:00
aac_audio_specific_config.h Support AAC with program_config_element() 2018-05-02 23:21:17 +00:00
aac_audio_specific_config_unittest.cc Support AAC with program_config_element() 2018-05-02 23:21:17 +00:00
ac3_audio_util.cc Fix incorrect CHANNELS reporting for AC3/EC3 2018-01-11 03:50:56 +00:00
ac3_audio_util.h Fix incorrect CHANNELS reporting for AC3/EC3 2018-01-11 03:50:56 +00:00
ac3_audio_util_unittest.cc Fix incorrect CHANNELS reporting for AC3/EC3 2018-01-11 03:50:56 +00:00
avc_decoder_configuration_record.cc Fix avc3 codec string problem 2017-04-28 19:24:11 +00:00
avc_decoder_configuration_record.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
avc_decoder_configuration_record_unittest.cc Fix avc3 codec string problem 2017-04-28 19:24:11 +00:00
codecs.gyp Fix incorrect CHANNELS reporting for AC3/EC3 2018-01-11 03:50:56 +00:00
decoder_configuration_record.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
decoder_configuration_record.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
ec3_audio_util.cc Fix incorrect CHANNELS reporting for AC3/EC3 2018-01-11 03:50:56 +00:00
ec3_audio_util.h Fix incorrect CHANNELS reporting for AC3/EC3 2018-01-11 03:50:56 +00:00
ec3_audio_util_unittest.cc Fix incorrect CHANNELS reporting for AC3/EC3 2018-01-11 03:50:56 +00:00
es_descriptor.cc Windows build working 2016-08-18 08:30:26 -07:00
es_descriptor.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
es_descriptor_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
h26x_bit_reader.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
h26x_bit_reader.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
h26x_bit_reader_unittest.cc Fix potential slice header size off by one byte in H265 2018-05-03 18:13:07 +00:00
h26x_byte_to_unit_stream_converter.cc Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
h26x_byte_to_unit_stream_converter.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
h264_byte_to_unit_stream_converter.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
h264_byte_to_unit_stream_converter.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
h264_byte_to_unit_stream_converter_unittest.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
h264_parser.cc LOG an error on unsupported streams 2018-04-06 21:45:45 +00:00
h264_parser.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
h264_parser_unittest.cc Change {luma,chrome}_weight_flag to arrays 2017-03-24 21:14:18 +00:00
h265_byte_to_unit_stream_converter.cc Fix incorrect HEVC decoder configuration data 2018-01-10 23:53:35 +00:00
h265_byte_to_unit_stream_converter.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
h265_byte_to_unit_stream_converter_unittest.cc Fix incorrect HEVC decoder configuration data 2018-01-10 23:53:35 +00:00
h265_parser.cc Fix potential slice header size off by one byte in H265 2018-05-03 18:13:07 +00:00
h265_parser.h Fix potential slice header size off by one byte in H265 2018-05-03 18:13:07 +00:00
h265_parser_unittest.cc Fix potential slice header size off by one byte in H265 2018-05-03 18:13:07 +00:00
hevc_decoder_configuration_record.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
hevc_decoder_configuration_record.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
hevc_decoder_configuration_record_unittest.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
nal_unit_to_byte_stream_converter.cc Copy over parameter sets in the sample if different to sample entry 2018-02-09 15:43:00 -08:00
nal_unit_to_byte_stream_converter.h Copy over parameter sets in the sample if different to sample entry 2018-02-09 15:43:00 -08:00
nal_unit_to_byte_stream_converter_unittest.cc Copy over parameter sets in the sample if different to sample entry 2018-02-09 15:43:00 -08:00
nalu_reader.cc Make NaluReader skip encrypted portion 2017-06-22 22:09:59 +00:00
nalu_reader.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
nalu_reader_unittest.cc Make NaluReader skip encrypted portion 2017-06-22 22:09:59 +00:00
video_slice_header_parser.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
video_slice_header_parser.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
video_slice_header_parser_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
vp8_parser.cc Add support for WebM colour element 2017-05-02 20:22:17 +00:00
vp8_parser.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
vp8_parser_unittest.cc Support v1 vp9 in iso-bmff 2017-04-27 19:37:14 +00:00
vp9_parser.cc Add support for WebM colour element 2017-05-02 20:22:17 +00:00
vp9_parser.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
vp9_parser_unittest.cc Support v1 vp9 in iso-bmff 2017-04-27 19:37:14 +00:00
vp_codec_configuration_record.cc Add support for WebM colour element 2017-05-02 20:22:17 +00:00
vp_codec_configuration_record.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
vp_codec_configuration_record_unittest.cc Add support for WebM colour element 2017-05-02 20:22:17 +00:00
vpx_parser.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
webvtt_util.h Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00