Index: content/common/gpu/media/h264_parser.cc |
diff --git a/content/common/gpu/media/h264_parser.cc b/content/common/gpu/media/h264_parser.cc |
index db4622f068dd694d9668bd2125ed8cb6ce89d9de..a78d8ced0d124cb53dff75ec1be7680d57976c59 100644 |
--- a/content/common/gpu/media/h264_parser.cc |
+++ b/content/common/gpu/media/h264_parser.cc |
@@ -724,8 +724,9 @@ H264Parser::Result H264Parser::ParsePPS(int* pps_id) { |
READ_BOOL_OR_RETURN(&pps->constrained_intra_pred_flag); |
READ_BOOL_OR_RETURN(&pps->redundant_pic_cnt_present_flag); |
- if (br_.HasMoreRBSPData()) { |
- READ_BOOL_OR_RETURN(&pps->transform_8x8_mode_flag); |
+ int temp; |
+ if (br_.ReadBits(1, &temp)) { |
+ pps->transform_8x8_mode_flag = temp; |
READ_BOOL_OR_RETURN(&pps->pic_scaling_matrix_present_flag); |
if (pps->pic_scaling_matrix_present_flag) { |