x2t - ooxml flat - fix gzip image

This commit is contained in:
ElenaSubbotina
2020-09-09 11:32:55 +03:00
parent 6456fa802a
commit cd8adbe83b
2 changed files with 6 additions and 5 deletions

View File

@ -661,7 +661,7 @@ int flush;
}
NEEDBITS(16);
#ifdef GUNZIP
if ((state->wrap & 2) && hold == 0x8b1f) { /* gzip header */
if ((state->wrap & 2 || state->wrap & 5) && hold == 0x8b1f) { /* gzip header */
if (state->wbits == 0)
state->wbits = 15;
state->check = crc32(0L, Z_NULL, 0);