Fix type of local encoded length variable from uint32_t to size_t.
BUG=chromium:571594 Review URL: https://codereview.webrtc.org/1635083002 Cr-Commit-Position: refs/heads/master@{#11383}
This commit is contained in:
@ -978,7 +978,7 @@ int VP8EncoderImpl::GetEncodedPartitions(const VideoFrame& input_image,
|
|||||||
NULL) {
|
NULL) {
|
||||||
switch (pkt->kind) {
|
switch (pkt->kind) {
|
||||||
case VPX_CODEC_CX_FRAME_PKT: {
|
case VPX_CODEC_CX_FRAME_PKT: {
|
||||||
uint32_t length = encoded_images_[encoder_idx]._length;
|
size_t length = encoded_images_[encoder_idx]._length;
|
||||||
if (pkt->data.frame.sz + length >
|
if (pkt->data.frame.sz + length >
|
||||||
encoded_images_[encoder_idx]._size) {
|
encoded_images_[encoder_idx]._size) {
|
||||||
uint8_t* buffer = new uint8_t[pkt->data.frame.sz + length];
|
uint8_t* buffer = new uint8_t[pkt->data.frame.sz + length];
|
||||||
|
|||||||
Reference in New Issue
Block a user