summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
authorRoman Artiukhin <bahusdrive@gmail.com>2024-10-23 19:35:15 +0300
committerSolomon Peachy <pizza@shaftnet.org>2024-10-23 21:17:35 -0400
commitcb1346b640017a821105e8d8b4cc51640858c8d1 (patch)
tree5f833c811fcf5539e4654c7a1ae421be2fc72017 /apps/recorder
parent063b917f69c919362c328ee036ac1a28eb9cf25e (diff)
downloadrockbox-cb1346b640017a821105e8d8b4cc51640858c8d1.tar.gz
rockbox-cb1346b640017a821105e8d8b4cc51640858c8d1.zip
Ignore zero bytes between markers in built-in jpeg decoder
For consistency between built-in and imageviewer jpeg decoders. Change-Id: I2aab5923ee096b99a7def49dcdc436b872823971
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/jpeg_load.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/recorder/jpeg_load.c b/apps/recorder/jpeg_load.c
index eccd781f9b..154a57b98c 100644
--- a/apps/recorder/jpeg_load.c
+++ b/apps/recorder/jpeg_load.c
@@ -944,8 +944,9 @@ static int process_markers(struct jpeg* p_jpeg)
944 int ret = 0; /* returned flags */ 944 int ret = 0; /* returned flags */
945 bool done = false; 945 bool done = false;
946 946
947 while (!done && (c = e_getc(p_jpeg, -1))) 947 while (!done)
948 { 948 {
949 c = e_getc(p_jpeg, -1);
949 if (c != 0xFF) /* no marker? */ 950 if (c != 0xFF) /* no marker? */
950 { 951 {
951 JDEBUGF("Non-marker data\n"); 952 JDEBUGF("Non-marker data\n");