changeset 716:946170f9ed39

segfault fixed - maybe
author arpi_esp
date Mon, 07 May 2001 01:59:58 +0000
parents 2bd7c16d89e1
children f44cf2772aa1
files mp3lib/layer3.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mp3lib/layer3.c	Mon May 07 00:03:30 2001 +0000
+++ b/mp3lib/layer3.c	Mon May 07 01:59:58 2001 +0000
@@ -663,7 +663,7 @@
         { register short *val = h->table;
           while((y=*val++)<0) {
             part2remain--;
-            if(part2remain < 0) return 0;
+            if(part2remain < 0) return 1;
             if (get1bit()) val-=y;
           }
           x = y >> 4;
@@ -818,7 +818,7 @@
         { register short *val = h->table;
           while((y=*val++)<0) {
             part2remain--;
-            if(part2remain < 0) return 0;
+            if(part2remain < 0) return 1;
             if (get1bit()) val -= y;
 //            if(part2remain<=0) return 0; // Arpi
           }
@@ -1008,7 +1008,7 @@
           register short *val = h->table;
           while((y=*val++)<0) {
             part2remain--;
-            if(part2remain < 0) return 0;
+            if(part2remain < 0) return 1;
             if (get1bit()) val -= y;
 //            if(part2remain<=0) return 0; // Arpi
           }
@@ -1203,7 +1203,7 @@
           register short *val = h->table;
           while((y=*val++)<0) {
             part2remain--;
-            if(part2remain < 0) return 0;
+            if(part2remain < 0) return 1;
             if (get1bit()) val -= y;
           }
           x = y >> 4;