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

Unified Diff: content/common/gpu/media/video_encode_accelerator_unittest.cc

Issue 686283002: Vaapi VEA: always generate IDR when keyframe is requested. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test failure - forgot to set current_encode_job_->keyframe. Created 6 years, 2 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 | « content/common/gpu/media/vaapi_video_encode_accelerator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/video_encode_accelerator_unittest.cc
diff --git a/content/common/gpu/media/video_encode_accelerator_unittest.cc b/content/common/gpu/media/video_encode_accelerator_unittest.cc
index c4c6339d309a035da5ec61ff459ad4baa1769215..b1fb59226668a32f193cab0b3021bc9ac5b04df7 100644
--- a/content/common/gpu/media/video_encode_accelerator_unittest.cc
+++ b/content/common/gpu/media/video_encode_accelerator_unittest.cc
@@ -385,15 +385,10 @@ void H264Validator::ProcessStreamBuffer(const uint8* stream, size_t size) {
ASSERT_TRUE(seen_sps_);
ASSERT_TRUE(seen_pps_);
seen_idr_ = true;
+ keyframe = true;
// fallthrough
case media::H264NALU::kNonIDRSlice: {
ASSERT_TRUE(seen_idr_);
-
- media::H264SliceHeader shdr;
- ASSERT_EQ(media::H264Parser::kOk,
- h264_parser_.ParseSliceHeader(nalu, &shdr));
- keyframe = shdr.IsISlice() || shdr.IsSISlice();
-
if (!frame_cb_.Run(keyframe))
return;
break;
« no previous file with comments | « content/common/gpu/media/vaapi_video_encode_accelerator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698