Fixing issue in JPG decoder

This commit is contained in:
Joel Bodenmann 2017-09-22 12:16:53 +02:00
parent 2943011ccb
commit ecfcf994c6

View File

@ -88,6 +88,7 @@ gdispImageError gdispImageOpen_JPG(gdispImage *img){
switch (hdr[1]) {
case 0xC0: // SOF0
gfileSetPos(img->f, gfileGetPos(img->f)+1);
gfileRead(img->f, hdr, 4);
img->height = gdispImageGetAlignedBE16(hdr, 0);
img->width = gdispImageGetAlignedBE16(hdr, 2);