Fixing issue in JPG decoder

release/v2.9
Joel Bodenmann 2017-09-22 12:16:53 +02:00
parent 2943011ccb
commit ecfcf994c6
1 changed files with 1 additions and 0 deletions

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);