Skip to content

Commit 0883bf3

Browse files
committed
Rollback meaningless changes
1 parent 8087c9f commit 0883bf3

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/ccap_convert_frame.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
#include <cassert>
1515
#include <cstring>
16-
#include <limits>
1716

1817
namespace ccap {
1918
bool inplaceConvertFrameYUV2RGBColor(VideoFrame* frame, PixelFormat toFormat, bool verticalFlip) { /// (NV12/I420/YUYV/UYVY) -> (BGR24/BGRA32)
@@ -228,9 +227,7 @@ bool inplaceConvertFrame(VideoFrame* frame, PixelFormat toFormat, bool verticalF
228227
if (ret) {
229228
assert(frame->pixelFormat == toFormat);
230229
assert(frame->allocator != nullptr && frame->data[0] == frame->allocator->data());
231-
const size_t bufferSize = frame->allocator->size();
232-
frame->sizeInBytes = bufferSize > std::numeric_limits<uint32_t>::max() ?
233-
std::numeric_limits<uint32_t>::max() : static_cast<uint32_t>(bufferSize);
230+
frame->sizeInBytes = frame->allocator->size();
234231
}
235232
return ret;
236233
}

0 commit comments

Comments
 (0)