jl777 7 years ago
parent
commit
9b9e375b21
  1. 4
      iguana/exchanges/LP_privkey.c

4
iguana/exchanges/LP_privkey.c

@ -482,7 +482,7 @@ int32_t LP_jpg_process(int32_t *capacityp,char *inputfname,char *outputfname,uin
for (i=0; i<DCTSIZE2; i++) for (i=0; i<DCTSIZE2; i++)
{ {
val = row_ptrs[compnum][0][blocknum][i]; val = row_ptrs[compnum][0][blocknum][i];
if ( val < -8 || val >= 8 ) if ( val < -limit || val >= limit )
{ {
if ( (*capacityp) < required ) if ( (*capacityp) < required )
{ {
@ -520,7 +520,7 @@ int32_t LP_jpg_process(int32_t *capacityp,char *inputfname,char *outputfname,uin
for (i=0; i<DCTSIZE2&&emit<required; i++) for (i=0; i<DCTSIZE2&&emit<required; i++)
{ {
val = coef_buffers[compnum][rownum][blocknum][i]; val = coef_buffers[compnum][rownum][blocknum][i];
if ( val < -8 || val >= 8 ) if ( val < -limit || val >= limit )
{ {
val &= ~1; val &= ~1;
if (GETBIT(data,emit) != 0 )//|| (emit >= required && (rand() & 1) != 0) ) if (GETBIT(data,emit) != 0 )//|| (emit >= required && (rand() & 1) != 0) )

Loading…
Cancel
Save