Index: content/common/gpu/media/vaapi_h264_decoder.cc |
diff --git a/content/common/gpu/media/vaapi_h264_decoder.cc b/content/common/gpu/media/vaapi_h264_decoder.cc |
index 56918caf5d79ef86e0b1b96193fdee69129edb6b..55b0d007cda566936c3ed0c26043f3a5dfd8f16e 100644 |
--- a/content/common/gpu/media/vaapi_h264_decoder.cc |
+++ b/content/common/gpu/media/vaapi_h264_decoder.cc |
@@ -532,9 +532,9 @@ bool VaapiH264Decoder::InitCurrPicture(media::H264SliceHeader* slice_hdr) { |
// process after this picture is decoded, store required data for that |
// purpose. |
if (slice_hdr->adaptive_ref_pic_marking_mode_flag) { |
- COMPILE_ASSERT(sizeof(curr_pic_->ref_pic_marking) == |
- sizeof(slice_hdr->ref_pic_marking), |
- ref_pic_marking_array_sizes_do_not_match); |
+ static_assert(sizeof(curr_pic_->ref_pic_marking) == |
+ sizeof(slice_hdr->ref_pic_marking), |
+ "ref_pic_marking array sizes do not match"); |
memcpy(curr_pic_->ref_pic_marking, slice_hdr->ref_pic_marking, |
sizeof(curr_pic_->ref_pic_marking)); |
} |