From ab004045717a65b9812b044ed59e9485927b2348 Mon Sep 17 00:00:00 2001 From: Magnus Jedvert Date: Tue, 5 May 2015 11:37:12 +0200 Subject: [PATCH] VCMEncodedFrame::VerifyAndAllocate: Use size_t instead of uint32_t for size argument BUG=484432 R=tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/53379004 Cr-Commit-Position: refs/heads/master@{#9135} --- webrtc/modules/video_coding/main/source/encoded_frame.cc | 2 +- webrtc/modules/video_coding/main/source/encoded_frame.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/video_coding/main/source/encoded_frame.cc b/webrtc/modules/video_coding/main/source/encoded_frame.cc index 0cf4874c25..2830399dd6 100644 --- a/webrtc/modules/video_coding/main/source/encoded_frame.cc +++ b/webrtc/modules/video_coding/main/source/encoded_frame.cc @@ -148,7 +148,7 @@ const RTPFragmentationHeader* VCMEncodedFrame::FragmentationHeader() const { return &_fragmentation; } -void VCMEncodedFrame::VerifyAndAllocate(const uint32_t minimumSize) +void VCMEncodedFrame::VerifyAndAllocate(size_t minimumSize) { if(minimumSize > _size) { diff --git a/webrtc/modules/video_coding/main/source/encoded_frame.h b/webrtc/modules/video_coding/main/source/encoded_frame.h index d8589070d4..6caaf42ff6 100644 --- a/webrtc/modules/video_coding/main/source/encoded_frame.h +++ b/webrtc/modules/video_coding/main/source/encoded_frame.h @@ -108,7 +108,7 @@ protected: * is copied to the new buffer. * Buffer size is updated to minimumSize. */ - void VerifyAndAllocate(const uint32_t minimumSize); + void VerifyAndAllocate(size_t minimumSize); void Reset();