Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Unified Diff: content/common/gpu/media/h264_parser.cc

Issue 12593006: Fix GPU overflow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c4d09eda6dfcb42e38fb06238fa870764512b96a..1eb93da5f21149cc05b0651c53cbc11f169e988c 100644
--- a/content/common/gpu/media/h264_parser.cc
+++ b/content/common/gpu/media/h264_parser.cc
@@ -460,7 +460,8 @@ 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]),
+ CHECK_EQ(arraysize(sps->scaling_list4x4[i]), kH264ScalingList4x4Length);
Pawel Osciak 2013/03/08 02:37:53 I don't see how this check would be useful.
+ res = ParseScalingList(arraysize(sps->scaling_list4x4[i]),
sps->scaling_list4x4[i], &use_default);
if (res != kOk)
return res;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698