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; |