Handle EOI marker.
authorsgunderson@bigfoot.com <>
Sun, 31 May 2009 18:17:13 +0000 (20:17 +0200)
committersgunderson@bigfoot.com <>
Sun, 31 May 2009 18:17:13 +0000 (20:17 +0200)
driver.c

index 35934da1d72d711efafdb588b62dae22cdcd8e54..fd861f25d7b56250aadf7f1666174e9fb2fe9b41 100644 (file)
--- a/driver.c
+++ b/driver.c
@@ -293,6 +293,9 @@ int main(void)
                case 0xd8:
                        /* SOI */
                        break;
+               case 0xd9:
+                       /* EOI */
+                       exit(0);
                case 0xc4:
                        /* DHT (define Huffman tables) */
                        read_huffman_tables(&tables, byte_source_input_func, &source);