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

Unified Diff: media/filters/vp8_parser.cc

Issue 1858423002: Fix C4334 (32-bit shift converted to 64-bit) warnings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing obsolete comment and pointless '1' Created 4 years, 8 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 | « build/config/compiler/BUILD.gn ('k') | net/base/mime_sniffer_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/vp8_parser.cc
diff --git a/media/filters/vp8_parser.cc b/media/filters/vp8_parser.cc
index 5b49673d86e88b42450f4e849c608bf6c844e95a..008847880b9dafc486ab784f203ee4207c637d70 100644
--- a/media/filters/vp8_parser.cc
+++ b/media/filters/vp8_parser.cc
@@ -153,8 +153,8 @@ bool Vp8Parser::ParseFrameHeader(Vp8FrameHeader* fhdr) {
int log2_nbr_of_dct_partitions;
BD_READ_UNSIGNED_OR_RETURN(2, &log2_nbr_of_dct_partitions);
- fhdr->num_of_dct_partitions =
- static_cast<size_t>(1 << log2_nbr_of_dct_partitions);
+ fhdr->num_of_dct_partitions = static_cast<size_t>(1)
+ << log2_nbr_of_dct_partitions;
if (!ParseQuantizationHeader(&fhdr->quantization_hdr))
return false;
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | net/base/mime_sniffer_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698