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

Unified Diff: media/muxers/webm_muxer_fuzzertest.cc

Issue 2612403002: Release video frames earlier in MediaRecorder (Closed)
Patch Set: mcasas@ nits. Created 3 years, 11 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 9d74b1dc0069a4afde64572e09f65e9294414155..6193f3ad052b1839d605ca396220e28370174b2a 100644
--- a/media/muxers/webm_muxer_fuzzertest.cc
+++ b/media/muxers/webm_muxer_fuzzertest.cc
@@ -65,7 +65,8 @@ 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(video_frame, base::MakeUnique<std::string>(str),
+ muxer.OnEncodedVideo(WebmMuxer::VideoParameters(video_frame),
+ base::MakeUnique<std::string>(str),
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