Browse Source

* Fix uninitialized result in DoDecode subroutine

Michaël Van Canneyt 2 years ago
parent
commit
cc339fd3b8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/pasjpeg/src/jdphuff.pas

+ 2 - 1
packages/pasjpeg/src/jdphuff.pas

@@ -521,10 +521,11 @@ var
     if (s < 0) then
     begin
       decode_mcu_AC_first := FALSE;
-      exit;
+      exit(true);
     end;
     get_buffer := br_state.get_buffer;
     bits_left := br_state.bits_left;
+    DoDecode:=false;
   end;
 
 begin