video_coding: Allocating encoded buffer based on length and not size

Review URL: http://webrtc-codereview.appspot.com/318010

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1163 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mikhal@webrtc.org 2011-12-13 00:54:28 +00:00
parent fe61bc3607
commit 352ade7023

View File

@ -61,7 +61,7 @@ VCMEncodedFrame::VCMEncodedFrame(const VCMEncodedFrame& rhs)
_length = 0;
if (rhs._buffer != NULL)
{
VerifyAndAllocate(rhs._size);
VerifyAndAllocate(rhs._length);
memcpy(_buffer, rhs._buffer, rhs._length);
_length = rhs._length;
}