Commit c5ef76fb authored by arun.m@samsung.com's avatar arun.m@samsung.com

VDA: Append correct number of bytes per frame for VP8

VDA unittest was sending extra bytes to OMX.

BUG=None
TEST=Run VDA unittest for Vp8 streams

Change-Id: Ied25c9b86335488585c5bce6e86fabfd10a6b1ac


Review URL: https://chromiumcodereview.appspot.com/10834290

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151310 0039d316-1c4b-4281-b951-d872f2087c98
parent b6629d0a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment