From 8ddcc671cf0c44d5c354c0598220abf9a762de87 Mon Sep 17 00:00:00 2001 From: arpi_esp Date: Mon, 7 May 2001 01:59:58 +0000 Subject: segfault fixed - maybe git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@717 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mp3lib/layer3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mp3lib') diff --git a/mp3lib/layer3.c b/mp3lib/layer3.c index 2c8c29f24c..0983f86333 100644 --- a/mp3lib/layer3.c +++ b/mp3lib/layer3.c @@ -663,7 +663,7 @@ static int III_dequantize_sample(real xr[SBLIMIT][SSLIMIT],int *scf, { 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 @@ static int III_dequantize_sample(real xr[SBLIMIT][SSLIMIT],int *scf, { 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 @@ static int III_dequantize_sample_ms(real xr[2][SBLIMIT][SSLIMIT],int *scf, 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 @@ static int III_dequantize_sample_ms(real xr[2][SBLIMIT][SSLIMIT],int *scf, 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; -- cgit v1.2.3