[MPlayer-users] Undefined reference in ffmpeg & ass
Tibor Simko
tibsi1 at gmail.com
Wed Apr 13 00:31:24 CEST 2011
Hello,
I have updated source code of mplayer(r33253)/ffmpeg. I am not able to
build mplayer without mencoder after this update (configure with
--disable-mencoder option).
Linking is stopped with the following errors:
ffmpeg/libavcodec/libavcodec.a(assdec.o): In function `ass_decode_frame':
assdec.c:(.text+0x46): undefined reference to `ff_ass_split_dialog'
ffmpeg/libavcodec/libavcodec.a(assdec.o): In function `ass_decode_close':
assdec.c:(.text+0xc2): undefined reference to `ff_ass_split_free'
ffmpeg/libavcodec/libavcodec.a(assdec.o): In function `ass_decode_init':
assdec.c:(.text.unlikely+0x3d): undefined reference to `ff_ass_split'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
I found out ass_decode_frame function in ffmpeg/libavcodec/assdec.c
was modified - calling of ff_ass_split_dialog function was added.
But it seems the ff_ass_split_dialog function is compiled only with mencoder.
So ffmpeg/libavcodec/Makefile should be modified to compile ass_split.c
(which contains the ff_ass_split_dialog) event --disable-mencoder option
is used.
Now the Makefile contains the following lines:
OBJS-$(CONFIG_SRT_DECODER) += srtdec.o ass.o
OBJS-$(CONFIG_SRT_ENCODER) += srtenc.o ass_split.o
Maybe it should be as the following:
OBJS-$(CONFIG_SRT_DECODER) += srtdec.o ass.o ass_split.o
OBJS-$(CONFIG_SRT_ENCODER) += srtenc.o ass_split.o
Tibor
More information about the MPlayer-users
mailing list