Index: media/video/h264_poc.cc |
diff --git a/media/video/h264_poc.cc b/media/video/h264_poc.cc |
index 5d2892a3703384698a86078bc92ee6e837cd230e..d414b1d84033379e9b084efdd6e02830f12b4834 100644 |
--- a/media/video/h264_poc.cc |
+++ b/media/video/h264_poc.cc |
@@ -172,10 +172,9 @@ bool H264POC::ComputePicOrderCnt( |
// 8-10. Derive |top_field_order_cnt| and |bottom_field_order_cnt| |
// (assuming no interlacing). |
- int32_t top_foc = expected_pic_order_cnt + |
- slice_hdr.delta_pic_order_cnt[0]; |
+ int32_t top_foc = expected_pic_order_cnt + slice_hdr.delta_pic_order_cnt0; |
int32_t bottom_foc = top_foc + sps->offset_for_top_to_bottom_field + |
- slice_hdr.delta_pic_order_cnt[1]; |
+ slice_hdr.delta_pic_order_cnt1; |
*pic_order_cnt = std::min(top_foc, bottom_foc); |
// Store state. |