| Index: media/formats/mp2t/es_parser_h264.cc
|
| diff --git a/media/formats/mp2t/es_parser_h264.cc b/media/formats/mp2t/es_parser_h264.cc
|
| index 3b47fec055a42fcfc2ee352f66a575c1ce7710c7..dc8315c27d2dd596d08d0205fd4fdc54559875b0 100644
|
| --- a/media/formats/mp2t/es_parser_h264.cc
|
| +++ b/media/formats/mp2t/es_parser_h264.cc
|
| @@ -6,8 +6,6 @@
|
|
|
| #include "base/logging.h"
|
| #include "base/numerics/safe_conversions.h"
|
| -#include "media/base/encryption_scheme.h"
|
| -#include "media/base/media_util.h"
|
| #include "media/base/stream_parser_buffer.h"
|
| #include "media/base/timestamp_constants.h"
|
| #include "media/base/video_frame.h"
|
| @@ -264,7 +262,7 @@
|
| const H264SPS* sps = h264_parser_->GetSPS(pps->seq_parameter_set_id);
|
| if (!sps)
|
| return false;
|
| - RCHECK(UpdateVideoDecoderConfig(sps, Unencrypted()));
|
| + RCHECK(UpdateVideoDecoderConfig(sps));
|
| }
|
|
|
| // Emit a frame.
|
| @@ -289,8 +287,7 @@
|
| return es_adapter_.OnNewBuffer(stream_parser_buffer);
|
| }
|
|
|
| -bool EsParserH264::UpdateVideoDecoderConfig(const H264SPS* sps,
|
| - const EncryptionScheme& scheme) {
|
| +bool EsParserH264::UpdateVideoDecoderConfig(const H264SPS* sps) {
|
| // Set the SAR to 1 when not specified in the H264 stream.
|
| int sar_width = (sps->sar_width == 0) ? 1 : sps->sar_width;
|
| int sar_height = (sps->sar_height == 0) ? 1 : sps->sar_height;
|
| @@ -317,7 +314,7 @@
|
| VideoDecoderConfig video_decoder_config(
|
| kCodecH264, ProfileIDCToVideoCodecProfile(sps->profile_idc),
|
| PIXEL_FORMAT_YV12, COLOR_SPACE_HD_REC709, coded_size, visible_rect,
|
| - natural_size, EmptyExtraData(), scheme);
|
| + natural_size, std::vector<uint8_t>(), false);
|
|
|
| if (!video_decoder_config.Matches(last_video_decoder_config_)) {
|
| DVLOG(1) << "Profile IDC: " << sps->profile_idc;
|
|
|