[MPlayer-users] faad2 help
Michael A. Peters
mpeters at mac.com
Thu Mar 6 14:51:17 CET 2003
I found a patch that fixes the issue.
I've attached it for those interested.
On Thu, 2003-03-06 at 04:12, Michael A. Peters wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> I ran across an mp4 video that didn't play right.
> video was fine, but no audio.
>
> mplayer output regarding audio:
>
> Requested audio codec family [faad] (afm=faad) not available (enable it
> at compilation)
>
> so I compile and install libsndfile-1.0.4
>
> I try to compile faad2 and first I have to edit the
> faad2/frontend/audio.c file.
>
> I changed:
> aufile->sfinfo.samples = 0;
> to
> aufile->sfinfo.frames = 0;
>
> (the sndfile.h header file says it changed)
>
> That got me farther - but then I ran into a bunch of unresolved symbol
> file later on:
>
> gcc -O2 -D_FILE_OFFSET_BITS=64 -o .libs/faad main.o audio.o
> ../libfaad/.libs/libfaad.so ../common/mp4v2/.libs/libmp4v2.so
> /usr/lib/libsndfile.so -lm
> ../common/mp4v2/.libs/libmp4v2.so: undefined reference to `operator
> new[](unsigned)'
> ../common/mp4v2/.libs/libmp4v2.so: undefined reference to `vtable for
> __cxxabiv1::__pointer_type_info'
> ../common/mp4v2/.libs/libmp4v2.so: undefined reference to `vtable for
> __cxxabiv1::__si_class_type_info'
> ../common/mp4v2/.libs/libmp4v2.so: undefined reference to `operator
> delete(void*)'
> ../common/mp4v2/.libs/libmp4v2.so: undefined reference to
> `__cxa_end_catch'
> ../common/mp4v2/.libs/libmp4v2.so: undefined reference to
> `__gxx_personality_v0'../common/mp4v2/.libs/libmp4v2.so: undefined
> reference to `__cxa_pure_virtual'
> ../common/mp4v2/.libs/libmp4v2.so: undefined reference to `vtable for
> __cxxabiv1::__class_type_info'
> ../common/mp4v2/.libs/libmp4v2.so: undefined reference to `__cxa_throw'
> ../common/mp4v2/.libs/libmp4v2.so: undefined reference to `operator
> delete[](void*)'
> ../common/mp4v2/.libs/libmp4v2.so: undefined reference to
> `__cxa_begin_catch'
> ../common/mp4v2/.libs/libmp4v2.so: undefined reference to
> `__cxa_allocate_exception'
> ../common/mp4v2/.libs/libmp4v2.so: undefined reference to `operator
> new(unsigned)'
> collect2: ld returned 1 exit status
> make[1]: *** [faad] Error 1
>
> I'm using the gcc on Red Hat 8
>
> -=-
> I know this isn't the faad2 help list (I asked on their forum too) - but
> I'm guessing people here might have run into this problem?
>
> Thanks for any suggestions. I'd really like to get past this so I can
> rebuild my mplayer :D
--
Michael A. Peters <mpeters at mac.com>
-------------- next part --------------
--- faad2/frontend/audio.c.orig 2002-07-25 14:42:54.000000000 +0200
+++ faad2/frontend/audio.c 2002-08-30 22:42:52.000000000 +0200
@@ -52,7 +52,7 @@
break;
}
aufile->sfinfo.channels = channels;
- aufile->sfinfo.samples = 0;
+ /*aufile->sfinfo.samples = 0;*/
#ifdef _WIN32
if(infile[0] == '-')
{
@@ -90,4 +90,4 @@
sf_close(aufile->sndfile);
if (aufile) free(aufile);
-}
\ No newline at end of file
+}
--- faad2/frontend/Makefile.am.orig 2002-07-25 16:22:25.000000000 +0200
+++ faad2/frontend/Makefile.am 2002-08-30 22:43:30.000000000 +0200
@@ -7,3 +7,4 @@
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/common/mp4v2
LDFLAGS =
LDADD = $(top_builddir)/libfaad/libfaad.la $(top_builddir)/common/mp4v2/libmp4v2.la -lm -lsndfile
+CCLD = g++
More information about the MPlayer-users
mailing list