ref: e19fec5c35a674e2355a14afebd373531d3e2ef2
parent: 542ddb70cb7f23baefda7129370dd4d73a075ba8
author: sur <sur>
date: Fri Jul 7 08:35:24 EDT 2006
faad_rewindbits fixed
--- a/libfaad/bits.c
+++ b/libfaad/bits.c
@@ -27,7 +27,7 @@
** Commercial non-GPL licensing of this software is possible.
** For more info contact Nero AG through [email protected].
**
-** $Id: bits.c,v 1.41 2006/05/07 18:09:00 menno Exp $
+** $Id: bits.c,v 1.42 2006/07/07 12:35:24 sur Exp $
**/
#include "common.h"
@@ -140,10 +140,10 @@
if (ld->bytes_left >= 4)
{
- tmp = getdword((uint32_t*)ld->start[0]);
+ tmp = getdword((uint32_t*)&ld->start[0]);
ld->bytes_left -= 4;
} else {
- tmp = getdword_n((uint32_t*)ld->start[0], ld->bytes_left);
+ tmp = getdword_n((uint32_t*)&ld->start[0], ld->bytes_left);
ld->bytes_left = 0;
}
ld->bufa = tmp;
@@ -150,10 +150,10 @@
if (ld->bytes_left >= 4)
{
- tmp = getdword((uint32_t*)ld->start[1] + 1);
+ tmp = getdword((uint32_t*)&ld->start[1]);
ld->bytes_left -= 4;
} else {
- tmp = getdword_n((uint32_t*)ld->start[1] + 1, ld->bytes_left);
+ tmp = getdword_n((uint32_t*)&ld->start[1], ld->bytes_left);
ld->bytes_left = 0;
}
ld->bufb = tmp;