| Index: content/common/gpu/media/h264_dpb.cc
|
| diff --git a/content/common/gpu/media/h264_dpb.cc b/content/common/gpu/media/h264_dpb.cc
|
| index dfefc18f65445440dd51cdd6504f1d6d09aaa9a0..1220d591fc545d04e9bbc634d4d29e94346066cf 100644
|
| --- a/content/common/gpu/media/h264_dpb.cc
|
| +++ b/content/common/gpu/media/h264_dpb.cc
|
| @@ -10,11 +10,29 @@
|
|
|
| namespace content {
|
|
|
| -H264PictureBase::H264PictureBase() {
|
| - memset(this, 0, sizeof(*this));
|
| -}
|
| -
|
| -H264Picture::H264Picture() {
|
| +H264Picture::H264Picture()
|
| + : top_field_order_cnt(0),
|
| + bottom_field_order_cnt(0),
|
| + pic_order_cnt(0),
|
| + pic_order_cnt_msb(0),
|
| + pic_order_cnt_lsb(0),
|
| + pic_num(0),
|
| + long_term_pic_num(0),
|
| + frame_num(0),
|
| + frame_num_offset(0),
|
| + frame_num_wrap(0),
|
| + long_term_frame_idx(0),
|
| + type(media::H264SliceHeader::kPSlice),
|
| + idr(false),
|
| + ref(false),
|
| + long_term(false),
|
| + outputted(false),
|
| + mem_mgmt_5(false),
|
| + field(FIELD_NONE),
|
| + long_term_reference_flag(false),
|
| + adaptive_ref_pic_marking_mode_flag(false),
|
| + dpb_position(0) {
|
| + memset(&ref_pic_marking, 0, sizeof(ref_pic_marking));
|
| }
|
|
|
| H264Picture::~H264Picture() {
|
| @@ -24,6 +42,10 @@ V4L2H264Picture* H264Picture::AsV4L2H264Picture() {
|
| return nullptr;
|
| }
|
|
|
| +VaapiH264Picture* H264Picture::AsVaapiH264Picture() {
|
| + return nullptr;
|
| +}
|
| +
|
| H264DPB::H264DPB() : max_num_pics_(0) {}
|
| H264DPB::~H264DPB() {}
|
|
|
|
|