summaryrefslogtreecommitdiff
path: root/cmd/pspng.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/pspng.c')
-rw-r--r--cmd/pspng.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/pspng.c b/cmd/pspng.c
index 2bf9d7a..8a99a31 100644
--- a/cmd/pspng.c
+++ b/cmd/pspng.c
@@ -265,7 +265,8 @@ static int crc_embed_data(unsigned char *data, unsigned int data_length, int bit
raw_data = create_raw_pixel_values(data, bit_width, color_range, sliding_window);
random_window_bit_change(data, raw_data, bit_width, 2, color_range, sliding_window, offset);
- if(offset > 500000) {
+ //if(offset > 500000) {
+ if(offset == -1) {
new_data = calloc(300000, sizeof(unsigned char));
for(int k = 0; k < 300000; k++) {
new_data[k] = data[offset-(offset-prior_offset-1)+k];