Removed broken buffer size check.
To check the decoded h264 frame size against the output buffer is wrong. The size of the output buffer must only hold the data defined by the region rectangles.
This commit is contained in:
parent
bf7b2ef445
commit
c43faeec0a
@ -435,7 +435,6 @@ int h264_decompress(H264_CONTEXT* h264, BYTE* pSrcData, UINT32 SrcSize,
|
||||
int width, height;
|
||||
BYTE* pYUVPoint[3];
|
||||
RDPGFX_RECT16* rect;
|
||||
int UncompressedSize;
|
||||
primitives_t *prims = primitives_get();
|
||||
|
||||
if (!h264)
|
||||
@ -452,11 +451,6 @@ int h264_decompress(H264_CONTEXT* h264, BYTE* pSrcData, UINT32 SrcSize,
|
||||
if ((status = h264->subsystem->Decompress(h264, pSrcData, SrcSize)) < 0)
|
||||
return status;
|
||||
|
||||
UncompressedSize = h264->width * h264->height * 4;
|
||||
|
||||
if (UncompressedSize > (nDstStep * nDstHeight))
|
||||
return -1;
|
||||
|
||||
pYUVData = h264->pYUVData;
|
||||
iStride = h264->iStride;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user