| Index: content/common/gpu/media/h264_decoder.cc
|
| diff --git a/content/common/gpu/media/h264_decoder.cc b/content/common/gpu/media/h264_decoder.cc
|
| index af36b03e7cdb8f5c55c0a3dd03180b6c36ee3dfa..eaf5ca4178f02fd1c7bf0c42f3bca006763ea78e 100644
|
| --- a/content/common/gpu/media/h264_decoder.cc
|
| +++ b/content/common/gpu/media/h264_decoder.cc
|
| @@ -123,9 +123,9 @@ bool H264Decoder::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),
|
| + "Array sizes of ref pic marking do not match.");
|
| memcpy(curr_pic_->ref_pic_marking, slice_hdr->ref_pic_marking,
|
| sizeof(curr_pic_->ref_pic_marking));
|
| }
|
|
|