ref: 4dfc6c8fa70d3109591a1f51cf0d8a7849aeb4dd
parent: 2e3485429bccbf7793d1d5a7e47b0d69c06a3bc9
author: menno <menno>
date: Mon Feb 24 10:02:25 EST 2003
Fixes to bitstream
--- a/libfaad/bits.c
+++ b/libfaad/bits.c
@@ -16,7 +16,7 @@
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
**
-** $Id: bits.c,v 1.20 2003/02/16 19:16:12 menno Exp $
+** $Id: bits.c,v 1.21 2003/02/24 15:02:25 menno Exp $
**/
#include "common.h"
@@ -101,6 +101,8 @@
ld->bufb = tmp;
ld->bits_left = 32;
ld->tail = &ld->start[2];
+ ld->bytes_used = 0;
+ ld->no_more_reading = 0;
}
uint8_t *faad_getbitbuffer(bitfile *ld, uint32_t bits
--- a/libfaad/decoder.c
+++ b/libfaad/decoder.c
@@ -16,7 +16,7 @@
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
**
-** $Id: decoder.c,v 1.51 2003/02/16 18:17:11 menno Exp $
+** $Id: decoder.c,v 1.52 2003/02/24 15:02:25 menno Exp $
**/
#include "common.h"
@@ -174,7 +174,10 @@
}
if (ld.error)
+ {
+ faad_endbits(&ld);
return -1;
+ }
faad_endbits(&ld);
}
hDecoder->channelConfiguration = *channels;