libfreerdp-codec: fix xcrush level-1 compressor

This commit is contained in:
Marc-André Moreau 2014-05-25 21:39:25 -04:00
parent d2d8c482fc
commit 8c7fbe3394
2 changed files with 5 additions and 1 deletions

View File

@ -25,6 +25,8 @@
#include <freerdp/codec/mppc.h>
#pragma pack(push,1)
struct _XCRUSH_MATCH_INFO
{
UINT32 MatchOffset;
@ -65,6 +67,8 @@ struct _RDP61_COMPRESSED_DATA
};
typedef struct _RDP61_COMPRESSED_DATA RDP61_COMPRESSED_DATA;
#pragma pack(pop)
struct _XCRUSH_CONTEXT
{
BOOL Compressor;

View File

@ -532,7 +532,7 @@ int xcrush_optimize_matches(XCRUSH_CONTEXT* xcrush)
TotalMatchLength = 0;
OriginalMatches = xcrush->OriginalMatches;
OriginalMatchCount = xcrush->OptimizedMatchCount;
OriginalMatchCount = xcrush->OriginalMatchCount;
OptimizedMatches = xcrush->OptimizedMatches;
OptimizedMatchCount = xcrush->OptimizedMatchCount;