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

Unified Diff: media/muxers/webm_muxer_fuzzertest.cc

Issue 2691373005: Support alpha channel recording for VPX in MediaRecorder (Closed)
Patch Set: Created 3 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 | « media/muxers/webm_muxer.cc ('k') | media/muxers/webm_muxer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/muxers/webm_muxer_fuzzertest.cc
diff --git a/media/muxers/webm_muxer_fuzzertest.cc b/media/muxers/webm_muxer_fuzzertest.cc
index 6193f3ad052b1839d605ca396220e28370174b2a..dd68c6922ef9549965559529a04f37a8fcfd1741 100644
--- a/media/muxers/webm_muxer_fuzzertest.cc
+++ b/media/muxers/webm_muxer_fuzzertest.cc
@@ -65,9 +65,12 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
const auto visible_rect = gfx::Size(16 + rng() % 128, 16 + rng() % 128);
const auto video_frame = VideoFrame::CreateBlackFrame(visible_rect);
const auto is_key_frame = rng() % 2;
- muxer.OnEncodedVideo(WebmMuxer::VideoParameters(video_frame),
- base::MakeUnique<std::string>(str),
- base::TimeTicks(), is_key_frame);
+ const auto has_alpha_frame = rng() % 4;
+ muxer.OnEncodedVideo(
+ WebmMuxer::VideoParameters(video_frame),
+ base::MakeUnique<std::string>(str),
+ has_alpha_frame ? base::MakeUnique<std::string>(str) : nullptr,
+ base::TimeTicks(), is_key_frame);
base::RunLoop run_loop;
run_loop.RunUntilIdle();
}
« no previous file with comments | « media/muxers/webm_muxer.cc ('k') | media/muxers/webm_muxer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698