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

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

Issue 10834290: VDA: Append correct number of bytes per frame for VP8 (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Created 8 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 | « no previous file | 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_decode_accelerator_unittest.cc
diff --git a/content/common/gpu/media/video_decode_accelerator_unittest.cc b/content/common/gpu/media/video_decode_accelerator_unittest.cc
index 3eee8f78198055d55eae972bdd1fd58359cd5197..3ae6b474b7dec68412f25b7c0b7a95ec32b098f8 100644
--- a/content/common/gpu/media/video_decode_accelerator_unittest.cc
+++ b/content/common/gpu/media/video_decode_accelerator_unittest.cc
@@ -535,7 +535,7 @@ std::string GLRenderingVDAClient::GetBytesForNextFrames(
for (int i = 0; i < num_fragments_per_decode_; ++i) {
uint32 frame_size = *reinterpret_cast<uint32*>(&encoded_data_[*end_pos]);
*end_pos += 12; // Skip frame header.
- bytes.append(encoded_data_.substr(*end_pos, *end_pos + frame_size));
+ bytes.append(encoded_data_.substr(*end_pos, frame_size));
*end_pos += frame_size;
if (*end_pos + 12 >= encoded_data_.size())
return bytes;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698