Chromium Code Reviews| Index: media/formats/mp4/avc.h |
| diff --git a/media/formats/mp4/avc.h b/media/formats/mp4/avc.h |
| index b85d56e5b04cd6a025b72a48ceb345a71e462584..d5fdfa3295caf48d28c56e6de95611e6b5c9024c 100644 |
| --- a/media/formats/mp4/avc.h |
| +++ b/media/formats/mp4/avc.h |
| @@ -36,7 +36,8 @@ class MEDIA_EXPORT AVC { |
| static bool InsertParamSetsAnnexB( |
| const AVCDecoderConfigurationRecord& avc_config, |
| std::vector<uint8_t>* buffer, |
| - std::vector<SubsampleEntry>* subsamples); |
| + std::vector<SubsampleEntry>* subsamples, |
| + bool annexb_validation); |
| static bool ConvertConfigToAnnexB( |
| const AVCDecoderConfigurationRecord& avc_config, |
| @@ -70,6 +71,7 @@ class AVCBitstreamConverter : public BitstreamConverter { |
| public: |
| explicit AVCBitstreamConverter( |
| std::unique_ptr<AVCDecoderConfigurationRecord> avc_config); |
| + void DisablePostAnnexbValidation() { post_annexb_validation_ = false; } |
|
wolenetz
2017/01/25 23:42:41
Please add comment describing the effect of this n
erickung1
2017/02/03 18:18:31
Done.
|
| // BitstreamConverter interface |
| bool ConvertFrame(std::vector<uint8_t>* frame_buf, |
| @@ -79,6 +81,7 @@ class AVCBitstreamConverter : public BitstreamConverter { |
| private: |
| ~AVCBitstreamConverter() override; |
| std::unique_ptr<AVCDecoderConfigurationRecord> avc_config_; |
| + bool post_annexb_validation_; |
|
wolenetz
2017/01/25 23:42:41
Please add comment describing this new field.
erickung1
2017/02/03 18:18:31
Done.
|
| }; |
| } // namespace mp4 |