Skip to content

Commit b3fd3e2

Browse files
author
menno
committed
Linux stuff, cleaner compiling
1 parent e9b4be4 commit b3fd3e2

File tree

6 files changed

+26
-24
lines changed

6 files changed

+26
-24
lines changed

common/mp4ff/private.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ typedef __int32 int32_t;
1515
typedef unsigned __int32 uint32_t;
1616
typedef __int64 int64_t;
1717
typedef unsigned __int64 uint64_t;
18+
typedef __int64 off_t;
1819
#else
1920
#ifdef HAVE_INTTYPES_H
2021
#include <inttypes.h>
@@ -463,9 +464,9 @@ typedef struct
463464
{
464465
size_t (*read)(void *buffer, size_t length);
465466
size_t (*write)(void *buffer, size_t length);
466-
int64_t (*get_position)();
467-
int64_t (*get_length)();
468-
int (*seek)(int64_t position);
467+
off_t (*get_position)();
468+
off_t (*get_length)();
469+
int (*seek)(off_t position);
469470
} mp4_callback_t;
470471

471472
typedef struct

configure.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AC_INIT
2-
AM_INIT_AUTOMAKE(faad2, 2.0)
2+
AM_INIT_AUTOMAKE(faad2, 2.0.rc3)
33

44
AC_PROG_LIBTOOL
55
AC_SUBST(LIBTOOL_DEPS)

faad2.spec

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Summary: C library and frontend for decoding MPEG2/4 AAC
22
Name: faad2
3-
Version: 2.0.031106
3+
Version: 2.0.rc3
44
Release: 1
55
License: GPL
66
Group: Applications/Multimedia
@@ -55,11 +55,12 @@ This is a Quicktime library for UNIX in a freely redistributable,
5555
statically linkable library.
5656

5757
%prep
58-
%setup -n %{name}
58+
#%setup -n %{name}
59+
%setup -n %{name}-%{version}
5960
#%patch -p0
6061

6162
%build
62-
sh bootstrap
63+
#sh bootstrap
6364
./configure --with-drm --with-xmms --prefix=/usr
6465
make
6566

frontend/main.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@
2222
** Commercial non-GPL licensing of this software is possible.
2323
** For more info contact Ahead Software through [email protected].
2424
**
25-
** $Id: main.c,v 1.59 2003/11/06 15:45:08 menno Exp $
25+
** $Id: main.c,v 1.60 2003/11/17 19:40:11 menno Exp $
2626
**/
2727

2828
#ifdef _WIN32
2929
#define WIN32_LEAN_AND_MEAN
3030
#include <windows.h>
31-
typedef __int64 off_t;
3231
#else
3332
#include <time.h>
3433
#endif

libfaad/cfft.c

+14-13
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
** Commercial non-GPL licensing of this software is possible.
2323
** For more info contact Ahead Software through [email protected].
2424
**
25-
** $Id: cfft.c,v 1.19 2003/11/12 20:47:57 menno Exp $
25+
** $Id: cfft.c,v 1.20 2003/11/17 19:40:11 menno Exp $
2626
**/
2727

2828
/*
@@ -585,7 +585,7 @@ static void passf5(const uint16_t ido, const uint16_t l1, const complex_t *cc,
585585
----------------------------------------------------------------------*/
586586

587587
INLINE void cfftf1(uint16_t n, complex_t *c, complex_t *ch,
588-
uint16_t *ifac, complex_t *wa, int8_t isign)
588+
const uint16_t *ifac, const complex_t *wa, const int8_t isign)
589589
{
590590
uint16_t i;
591591
uint16_t k1, l1, l2;
@@ -610,27 +610,27 @@ INLINE void cfftf1(uint16_t n, complex_t *c, complex_t *ch,
610610
ix3 = ix2 + ido;
611611

612612
if (na == 0)
613-
passf4(ido, l1, c, ch, &wa[iw], &wa[ix2], &wa[ix3], isign);
613+
passf4((const uint16_t)ido, (const uint16_t)l1, (const complex_t*)c, ch, &wa[iw], &wa[ix2], &wa[ix3], isign);
614614
else
615-
passf4(ido, l1, ch, c, &wa[iw], &wa[ix2], &wa[ix3], isign);
615+
passf4((const uint16_t)ido, (const uint16_t)l1, (const complex_t*)ch, c, &wa[iw], &wa[ix2], &wa[ix3], isign);
616616

617617
na = 1 - na;
618618
break;
619619
case 2:
620620
if (na == 0)
621-
passf2(ido, l1, c, ch, &wa[iw], isign);
621+
passf2((const uint16_t)ido, (const uint16_t)l1, (const complex_t*)c, ch, &wa[iw], isign);
622622
else
623-
passf2(ido, l1, ch, c, &wa[iw], isign);
623+
passf2((const uint16_t)ido, (const uint16_t)l1, (const complex_t*)ch, c, &wa[iw], isign);
624624

625625
na = 1 - na;
626626
break;
627627
case 3:
628628
ix2 = iw + ido;
629629

630630
if (na == 0)
631-
passf3(ido, l1, c, ch, &wa[iw], &wa[ix2], isign);
631+
passf3((const uint16_t)ido, (const uint16_t)l1, (const complex_t*)c, ch, &wa[iw], &wa[ix2], isign);
632632
else
633-
passf3(ido, l1, ch, c, &wa[iw], &wa[ix2], isign);
633+
passf3((const uint16_t)ido, (const uint16_t)l1, (const complex_t*)ch, c, &wa[iw], &wa[ix2], isign);
634634

635635
na = 1 - na;
636636
break;
@@ -640,9 +640,9 @@ INLINE void cfftf1(uint16_t n, complex_t *c, complex_t *ch,
640640
ix4 = ix3 + ido;
641641

642642
if (na == 0)
643-
passf5(ido, l1, c, ch, &wa[iw], &wa[ix2], &wa[ix3], &wa[ix4], isign);
643+
passf5((const uint16_t)ido, (const uint16_t)l1, (const complex_t*)c, ch, &wa[iw], &wa[ix2], &wa[ix3], &wa[ix4], isign);
644644
else
645-
passf5(ido, l1, ch, c, &wa[iw], &wa[ix2], &wa[ix3], &wa[ix4], isign);
645+
passf5((const uint16_t)ido, (const uint16_t)l1, (const complex_t*)ch, c, &wa[iw], &wa[ix2], &wa[ix3], &wa[ix4], isign);
646646

647647
na = 1 - na;
648648
break;
@@ -664,12 +664,12 @@ INLINE void cfftf1(uint16_t n, complex_t *c, complex_t *ch,
664664

665665
void cfftf(cfft_info *cfft, complex_t *c)
666666
{
667-
cfftf1(cfft->n, c, cfft->work, cfft->ifac, cfft->tab, -1);
667+
cfftf1(cfft->n, c, cfft->work, (const uint16_t*)cfft->ifac, (const complex_t*)cfft->tab, -1);
668668
}
669669

670670
void cfftb(cfft_info *cfft, complex_t *c)
671671
{
672-
cfftf1(cfft->n, c, cfft->work, cfft->ifac, cfft->tab, +1);
672+
cfftf1(cfft->n, c, cfft->work, (const uint16_t*)cfft->ifac, (const complex_t*)cfft->tab, +1);
673673
}
674674

675675
static void cffti1(uint16_t n, complex_t *wa, uint16_t *ifac)
@@ -808,4 +808,5 @@ void cfftu(cfft_info *cfft)
808808
#endif
809809

810810
if (cfft) free(cfft);
811-
}
811+
}
812+

libfaad/cfft.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
** Commercial non-GPL licensing of this software is possible.
2323
** For more info contact Ahead Software through [email protected].
2424
**
25-
** $Id: cfft.h,v 1.12 2003/11/12 20:47:57 menno Exp $
25+
** $Id: cfft.h,v 1.13 2003/11/17 19:40:12 menno Exp $
2626
**/
2727

2828
#ifndef __CFFT_H__
@@ -58,7 +58,7 @@ static void passf5(const uint16_t ido, const uint16_t l1, const complex_t *cc, c
5858
const complex_t *wa1, const complex_t *wa2, const complex_t *wa3,
5959
const complex_t *wa4, const int8_t isign);
6060
INLINE void cfftf1(uint16_t n, complex_t *c, complex_t *ch,
61-
uint16_t *ifac, complex_t *wa, int8_t isign);
61+
const uint16_t *ifac, const complex_t *wa, const int8_t isign);
6262
static void cffti1(uint16_t n, complex_t *wa, uint16_t *ifac);
6363

6464

0 commit comments

Comments
 (0)