diff options
author | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-08 05:42:38 +0000 |
---|---|---|
committer | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-08 05:42:38 +0000 |
commit | 262df687226c38fa7e5ee8cf42c31ca1200cd99d (patch) | |
tree | 58c8bec7f890e49a9414e4608284b0f95cba1bb8 /content/common/gpu | |
parent | ec1f2ef4ab8be9a2aa80eae70b95939eb6bb72f3 (diff) | |
download | chromium_src-262df687226c38fa7e5ee8cf42c31ca1200cd99d.zip chromium_src-262df687226c38fa7e5ee8cf42c31ca1200cd99d.tar.gz chromium_src-262df687226c38fa7e5ee8cf42c31ca1200cd99d.tar.bz2 |
Fix GPU overflow
BUG=181083
Review URL: https://chromiumcodereview.appspot.com/12593006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186899 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/gpu')
-rw-r--r-- | content/common/gpu/media/h264_parser.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/common/gpu/media/h264_parser.cc b/content/common/gpu/media/h264_parser.cc index c4d09ed..5de0d98 100644 --- a/content/common/gpu/media/h264_parser.cc +++ b/content/common/gpu/media/h264_parser.cc @@ -460,7 +460,7 @@ H264Parser::Result H264Parser::ParseSPSScalingLists(H264SPS* sps) { READ_BOOL_OR_RETURN(&seq_scaling_list_present_flag); if (seq_scaling_list_present_flag) { - res = ParseScalingList(sizeof(sps->scaling_list4x4[i]), + res = ParseScalingList(arraysize(sps->scaling_list4x4[i]), sps->scaling_list4x4[i], &use_default); if (res != kOk) return res; @@ -479,7 +479,7 @@ H264Parser::Result H264Parser::ParseSPSScalingLists(H264SPS* sps) { READ_BOOL_OR_RETURN(&seq_scaling_list_present_flag); if (seq_scaling_list_present_flag) { - res = ParseScalingList(sizeof(sps->scaling_list8x8[i]), + res = ParseScalingList(arraysize(sps->scaling_list8x8[i]), sps->scaling_list8x8[i], &use_default); if (res != kOk) return res; @@ -507,7 +507,7 @@ H264Parser::Result H264Parser::ParsePPSScalingLists(const H264SPS& sps, READ_BOOL_OR_RETURN(&pic_scaling_list_present_flag); if (pic_scaling_list_present_flag) { - res = ParseScalingList(sizeof(pps->scaling_list4x4[i]), + res = ParseScalingList(arraysize(pps->scaling_list4x4[i]), pps->scaling_list4x4[i], &use_default); if (res != kOk) return res; @@ -533,7 +533,7 @@ H264Parser::Result H264Parser::ParsePPSScalingLists(const H264SPS& sps, READ_BOOL_OR_RETURN(&pic_scaling_list_present_flag); if (pic_scaling_list_present_flag) { - res = ParseScalingList(sizeof(pps->scaling_list8x8[i]), + res = ParseScalingList(arraysize(pps->scaling_list8x8[i]), pps->scaling_list8x8[i], &use_default); if (res != kOk) return res; |