Fixing issue in JPG decoder
This commit is contained in:
parent
2943011ccb
commit
ecfcf994c6
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ gdispImageError gdispImageOpen_JPG(gdispImage *img){
|
||||||
|
|
||||||
switch (hdr[1]) {
|
switch (hdr[1]) {
|
||||||
case 0xC0: // SOF0
|
case 0xC0: // SOF0
|
||||||
|
gfileSetPos(img->f, gfileGetPos(img->f)+1);
|
||||||
gfileRead(img->f, hdr, 4);
|
gfileRead(img->f, hdr, 4);
|
||||||
img->height = gdispImageGetAlignedBE16(hdr, 0);
|
img->height = gdispImageGetAlignedBE16(hdr, 0);
|
||||||
img->width = gdispImageGetAlignedBE16(hdr, 2);
|
img->width = gdispImageGetAlignedBE16(hdr, 2);
|
||||||
|
|
Loading…
Add table
Reference in a new issue