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

Unified Diff: media/filters/vp9_parser_fuzzertest.cc

Issue 2133993002: Parse VP9 compressed header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reset curr_frame_info_ when Reset Created 4 years, 4 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 | « media/filters/vp9_parser.cc ('k') | media/filters/vp9_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/vp9_parser_fuzzertest.cc
diff --git a/media/filters/vp9_parser_fuzzertest.cc b/media/filters/vp9_parser_fuzzertest.cc
index 9ea0164ff9b0b5391601749033ba246fee542cd5..8f01c2968ed7d02b7f12652ff798cb98b388dfcd 100644
--- a/media/filters/vp9_parser_fuzzertest.cc
+++ b/media/filters/vp9_parser_fuzzertest.cc
@@ -21,10 +21,11 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
// Parse until the end of stream/unsupported stream/error in stream is found.
while (ivf_parser.ParseNextFrame(&ivf_frame_header, &ivf_payload)) {
- media::Vp9Parser vp9_parser;
+ // TODO(kcwu): fuzzing with parsing_compressed_header=true.
+ media::Vp9Parser vp9_parser(false);
media::Vp9FrameHeader vp9_frame_header;
vp9_parser.SetStream(ivf_payload, ivf_frame_header.frame_size);
- while (vp9_parser.ParseNextFrame(&vp9_frame_header) ==
+ while (vp9_parser.ParseNextFrame(&vp9_frame_header, nullptr) ==
media::Vp9Parser::kOk) {
// Repeat until all frames processed.
}
« no previous file with comments | « media/filters/vp9_parser.cc ('k') | media/filters/vp9_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698