mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Ignore zero bytes between markers in built-in jpeg decoder
For consistency between built-in and imageviewer jpeg decoders. Change-Id: I2aab5923ee096b99a7def49dcdc436b872823971
This commit is contained in:
parent
063b917f69
commit
cb1346b640
1 changed files with 2 additions and 1 deletions
|
@ -944,8 +944,9 @@ static int process_markers(struct jpeg* p_jpeg)
|
|||
int ret = 0; /* returned flags */
|
||||
bool done = false;
|
||||
|
||||
while (!done && (c = e_getc(p_jpeg, -1)))
|
||||
while (!done)
|
||||
{
|
||||
c = e_getc(p_jpeg, -1);
|
||||
if (c != 0xFF) /* no marker? */
|
||||
{
|
||||
JDEBUGF("Non-marker data\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue