mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Remember avc420 allocation width and height
This commit is contained in:
@@ -65,7 +65,6 @@ BOOL avc420_ensure_buffer(H264_CONTEXT* h264, UINT32 stride, UINT32 width, UINT3
|
||||
if (isNull || (width != h264->width) || (height != h264->height) ||
|
||||
(stride != h264->iStride[0]))
|
||||
{
|
||||
|
||||
h264->iStride[0] = stride;
|
||||
h264->iStride[1] = (stride + 1) / 2;
|
||||
h264->iStride[2] = (stride + 1) / 2;
|
||||
|
||||
@@ -277,8 +277,6 @@ static int libavcodec_decompress(H264_CONTEXT* h264, const BYTE* pSrcData, UINT3
|
||||
iStride[0] = sys->videoFrame->linesize[0];
|
||||
iStride[1] = sys->videoFrame->linesize[1];
|
||||
iStride[2] = sys->videoFrame->linesize[2];
|
||||
h264->width = sys->videoFrame->width;
|
||||
h264->height = sys->videoFrame->height;
|
||||
}
|
||||
else
|
||||
return -2;
|
||||
|
||||
Reference in New Issue
Block a user