diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-01-31 16:33:43 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-02-06 16:33:22 +0000 |
commit | da51f56cc21233c2d30f0fe0d171727c3102b2e0 (patch) | |
tree | 4e579ab70ce4b19bee7984237f3ce05a96d59d83 /chromium/media/formats/mp4/box_definitions.cc | |
parent | c8c2d1901aec01e934adf561a9fdf0cc776cdef8 (diff) | |
download | qtwebengine-chromium-da51f56cc21233c2d30f0fe0d171727c3102b2e0.tar.gz |
BASELINE: Update Chromium to 65.0.3525.40
Also imports missing submodules
Change-Id: I36901b7c6a325cda3d2c10cedb2186c25af3b79b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/media/formats/mp4/box_definitions.cc')
-rw-r--r-- | chromium/media/formats/mp4/box_definitions.cc | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/chromium/media/formats/mp4/box_definitions.cc b/chromium/media/formats/mp4/box_definitions.cc index ea6926caa5f..78c6b2d9e3b 100644 --- a/chromium/media/formats/mp4/box_definitions.cc +++ b/chromium/media/formats/mp4/box_definitions.cc @@ -14,20 +14,23 @@ #include "media/base/media_switches.h" #include "media/base/video_types.h" #include "media/base/video_util.h" -#include "media/formats/mp4/avc.h" #include "media/formats/mp4/es_descriptor.h" #include "media/formats/mp4/rcheck.h" #include "media/media_features.h" -#include "media/video/h264_parser.h" #include "third_party/libaom/av1_features.h" +#if BUILDFLAG(USE_PROPRIETARY_CODECS) +#include "media/formats/mp4/avc.h" +#include "media/video/h264_parser.h" // nogncheck + #if BUILDFLAG(ENABLE_DOLBY_VISION_DEMUXING) #include "media/formats/mp4/dolby_vision.h" -#endif +#endif // BUILDFLAG(ENABLE_DOLBY_VISION_DEMUXING) #if BUILDFLAG(ENABLE_HEVC_DEMUXING) #include "media/formats/mp4/hevc.h" -#endif +#endif // BUILDFLAG(ENABLE_HEVC_DEMUXING) +#endif // BUILDFLAG(USE_PROPRIETARY_CODECS) namespace media { namespace mp4 { @@ -577,6 +580,7 @@ bool HandlerReference::Parse(BoxReader* reader) { return true; } +#if BUILDFLAG(USE_PROPRIETARY_CODECS) AVCDecoderConfigurationRecord::AVCDecoderConfigurationRecord() : version(0), profile_indication(0), @@ -636,6 +640,7 @@ bool AVCDecoderConfigurationRecord::ParseInternal(BufferReader* reader, return true; } +#endif // BUILDFLAG(USE_PROPRIETARY_CODECS) VPCodecConfigurationRecord::VPCodecConfigurationRecord() : profile(VIDEO_CODEC_PROFILE_UNKNOWN) {} @@ -731,6 +736,7 @@ bool VideoSampleEntry::Parse(BoxReader* reader) { const FourCC actual_format = format == FOURCC_ENCV ? sinf.format.format : format; switch (actual_format) { +#if BUILDFLAG(USE_PROPRIETARY_CODECS) case FOURCC_AVC1: case FOURCC_AVC3: { DVLOG(2) << __func__ << " reading AVCDecoderConfigurationRecord (avcC)"; @@ -813,6 +819,7 @@ bool VideoSampleEntry::Parse(BoxReader* reader) { } #endif // BUILDFLAG(ENABLE_HEVC_DEMUXING) #endif // BUILDFLAG(ENABLE_DOLBY_VISION_DEMUXING) +#endif // BUILDFLAG(USE_PROPRIETARY_CODECS) case FOURCC_VP09: { DVLOG(2) << __func__ << " parsing VPCodecConfigurationRecord (vpcC)"; std::unique_ptr<VPCodecConfigurationRecord> vp_config( @@ -855,6 +862,7 @@ bool VideoSampleEntry::IsFormatValid() const { const FourCC actual_format = format == FOURCC_ENCV ? sinf.format.format : format; switch (actual_format) { +#if BUILDFLAG(USE_PROPRIETARY_CODECS) case FOURCC_AVC1: case FOURCC_AVC3: #if BUILDFLAG(ENABLE_HEVC_DEMUXING) @@ -869,6 +877,7 @@ bool VideoSampleEntry::IsFormatValid() const { case FOURCC_DVA1: case FOURCC_DVAV: #endif // BUILDFLAG(ENABLE_DOLBY_VISION_DEMUXING) +#endif // BUILDFLAG(USE_PROPRIETARY_CODECS) case FOURCC_VP09: return true; #if BUILDFLAG(ENABLE_AV1_DECODER) @@ -902,8 +911,13 @@ bool ElementaryStreamDescriptor::Parse(BoxReader* reader) { object_type = es_desc.object_type(); - if (es_desc.IsAAC(object_type)) + if (es_desc.IsAAC(object_type)) { +#if BUILDFLAG(USE_PROPRIETARY_CODECS) RCHECK(aac.Parse(es_desc.decoder_specific_info(), reader->media_log())); +#else + return false; +#endif + } return true; } |