summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer/png/png_decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/imageviewer/png/png_decoder.c')
-rw-r--r--apps/plugins/imageviewer/png/png_decoder.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/apps/plugins/imageviewer/png/png_decoder.c b/apps/plugins/imageviewer/png/png_decoder.c
index 1349d75db6..bae1fe3321 100644
--- a/apps/plugins/imageviewer/png/png_decoder.c
+++ b/apps/plugins/imageviewer/png/png_decoder.c
@@ -1675,7 +1675,6 @@ static void decodeGeneric(LodePNG_Decoder* decoder)
1675 1675
1676 /* for unknown chunk order */ 1676 /* for unknown chunk order */
1677 bool unknown = false; 1677 bool unknown = false;
1678 uint8_t critical_pos = 1; /*1 = after IHDR, 2 = after PLTE, 3 = after IDAT*/
1679 1678
1680 if (decoder->file_size == 0 || in == NULL) 1679 if (decoder->file_size == 0 || in == NULL)
1681 { 1680 {
@@ -1739,7 +1738,6 @@ static void decodeGeneric(LodePNG_Decoder* decoder)
1739 /* copy compressed data */ 1738 /* copy compressed data */
1740 memcpy(idat+idat_size, data, chunkLength * sizeof(uint8_t)); 1739 memcpy(idat+idat_size, data, chunkLength * sizeof(uint8_t));
1741 idat_size += chunkLength; 1740 idat_size += chunkLength;
1742 critical_pos = 3;
1743 } 1741 }
1744 /*IEND chunk*/ 1742 /*IEND chunk*/
1745 else if (LodePNG_chunk_type_equals(chunk, PNG_CHUNK_IEND)) 1743 else if (LodePNG_chunk_type_equals(chunk, PNG_CHUNK_IEND))
@@ -1765,7 +1763,6 @@ static void decodeGeneric(LodePNG_Decoder* decoder)
1765 decoder->infoPng.color.palette[(i<<2) | 2] = data[pos++]; /*B*/ 1763 decoder->infoPng.color.palette[(i<<2) | 2] = data[pos++]; /*B*/
1766 decoder->infoPng.color.palette[(i<<2) | 3] = 255; /*alpha*/ 1764 decoder->infoPng.color.palette[(i<<2) | 3] = 255; /*alpha*/
1767 } 1765 }
1768 critical_pos = 2;
1769 } 1766 }
1770 /*palette transparency chunk (tRNS)*/ 1767 /*palette transparency chunk (tRNS)*/
1771 else if (LodePNG_chunk_type_equals(chunk, PNG_CHUNK_tRNS)) 1768 else if (LodePNG_chunk_type_equals(chunk, PNG_CHUNK_tRNS))