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

Unified Diff: webrtc/modules/video_coding/utility/vp8_header_parser.h

Issue 1888313002: Fix the issue of undefined-shift in VP8GetBit. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Use error_ to save bitReader status. 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
Index: webrtc/modules/video_coding/utility/vp8_header_parser.h
diff --git a/webrtc/modules/video_coding/utility/vp8_header_parser.h b/webrtc/modules/video_coding/utility/vp8_header_parser.h
index b0c684c578b1e0628f62574050468b6415807f34..d4c30eac166107868680c765e6461a05e21832ad 100644
--- a/webrtc/modules/video_coding/utility/vp8_header_parser.h
+++ b/webrtc/modules/video_coding/utility/vp8_header_parser.h
@@ -35,6 +35,7 @@ struct VP8BitReader {
const uint8_t* buf_; // Next byte to be read.
const uint8_t* buf_end_; // End of read buffer.
int eof_; // True if input is exhausted.
+ bool error_; // True if input stream contains an error.
};
const uint8_t kVP8Log2Range[128] = {

Powered by Google App Engine
This is Rietveld 408576698