fixed decoding skippable frames

This commit is contained in:
Yann Collet
2017-02-28 01:15:28 -08:00
parent c0b1731bce
commit a33ae64204
2 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ static int basicUnitTests(U32 seed, double compressibility, ZSTD_customMem custo
outBuff.pos = 0;
{ size_t const r = ZSTD_decompressStream(zd, &outBuff, &inBuff);
if (r != 0) goto _output_error; }
if (outBuff.pos != 0) goto _output_error; /* skippable frame len is 0 */
if (outBuff.pos != 0) goto _output_error; /* skippable frame output len is 0 */
DISPLAYLEVEL(3, "OK \n");
/* Basic decompression test */