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

Unified Diff: media/base/video_codecs.cc

Issue 2320063002: Fixed access to `constraint_flags` array in ParseHEVCCodecId function. (Closed)
Patch Set: Created 4 years, 3 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: media/base/video_codecs.cc
diff --git a/media/base/video_codecs.cc b/media/base/video_codecs.cc
index 13afa406b4781455b4c33d2a08d0ccf7580f19a7..f60cbd6649de00993c398569fda5b270614e2b58 100644
--- a/media/base/video_codecs.cc
+++ b/media/base/video_codecs.cc
@@ -278,7 +278,7 @@ bool ParseHEVCCodecId(const std::string& codec_id,
DVLOG(4) << __func__ << ": invalid constraint byte=" << elem[i];
return false;
}
- constraint_flags[i] = constr_byte;
+ constraint_flags[i - 4] = constr_byte;
}
return true;
« 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