lib70x: Fix a rewind check regression in the CPD80 processing code

This commit is contained in:
Solomon Peachy 2021-08-14 08:09:36 -04:00
parent 9726451a02
commit 85512ec8f2
1 changed files with 4 additions and 3 deletions

View File

@ -57,7 +57,7 @@
*/
#define LIB_VERSION "0.10.1"
#define LIB_VERSION "0.10.2"
#include <stdio.h>
#include <stdint.h>
@ -1250,9 +1250,10 @@ int do_image_effect80(struct CPCData *cpc, struct CPCData *ecpc, struct BandImag
CImageEffect70_DoGamma(data, input, output, reverse);
/* Figure out if we can get away with rewinding, or not... */
if (cpc->REV[0]) {
if (!ecpc)
rew[0] = 1; /* if we don't have ecpc data (ie not in superfine mode) then rewinding is ok */
else if (cpc->REV[0])
rew[0] = CImageEffect70_JudgeReverseSkipRibbon(cpc, output, input->cols, input->rows, 1);
}
rew[1] = 1;
/* If we're NOT rewinding,