OSDN Git Service

debug jdatasrc.c (add ending judge and exit function)
authorKenichi Kurimoto <kurimoto12@users.sourceforge.jp>
Tue, 8 Feb 2011 22:46:41 +0000 (07:46 +0900)
committerKenichi Kurimoto <kurimoto12@users.sourceforge.jp>
Tue, 8 Feb 2011 22:46:41 +0000 (07:46 +0900)
snapgear-2.6-p42/user/jpeg-6b/jdatasrc.c

index edc752b..8308882 100644 (file)
@@ -95,6 +95,8 @@ fill_input_buffer (j_decompress_ptr cinfo)
   nbytes = JFREAD(src->infile, src->buffer, INPUT_BUF_SIZE);
 
   if (nbytes <= 0) {
+    /* add for LEON mjpeg pj*/
+    exit(0);
     if (src->start_of_file)    /* Treat empty input file as fatal error */
       ERREXIT(cinfo, JERR_INPUT_EMPTY);
     WARNMS(cinfo, JWRN_JPEG_EOF);