[MPlayer-dev-eng] [PATCH] libvpx compilation failure

Roberto Togni rxt at rtogni.it
Tue Sep 23 22:00:39 CEST 2014


Hi,
 compilation fails on Debian stable because of libvpx


r at blacktower:/usr/local/src/mplayer$ make
./version.sh `cc -dumpversion`
make -C ffmpeg libavcodec/libavcodec.a
make[1]: Entering directory `/usr/local/src/mplayer/ffmpeg'
CC	libavcodec/libvpxdec.o
libavcodec/libvpxdec.c: In function 'set_pix_fmt':
libavcodec/libvpxdec.c:71:14: error: 'VPX_IMG_FMT_I422' undeclared
(first use in this function) libavcodec/libvpxdec.c:71:14: note: each
undeclared identifier is reported only once for each function it
appears in libavcodec/libvpxdec.c:74:14: error: 'VPX_IMG_FMT_I444'
undeclared (first use in this function) make[1]: ***
[libavcodec/libvpxdec.o] Error 1 make[1]: Leaving directory
`/usr/local/src/mplayer/ffmpeg' make: ***
[ffmpeg/libavcodec/libavcodec.a] Error 2



libvpxdec.c uses some symbols that exist only in the vp9 codec,
while the libvpx included in debian stable (v 1.1.0) is vp8-only.
MPlayer fails to detect this, and tries to compile it anyway; FFmpeg
correctly disables libvpx on my system.


The attached patch fixes it.
It syncs our libvpx detection with FFmpeg, and so disables libvpx
compilation if vp9 is not there.


This could also be a bug in FFmpeg, since it should not use vp9 symbols
if vp9 decoder is not enabled. From what I understand FFmpeg configure
disables libvpx if any of the checks fails (vp8dec, vp8enc, vp9dec,
vp9enc), so I'm not so sure that I can call it a bug.


Can someone with a recent libvpx please check that detection works?

I'll apply it when somebody can confirm it works with a good libvpx
(or when Debian releases the next stable, whatever comes first).


Ciao,
 Roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.diff
Type: text/x-patch
Size: 712 bytes
Desc: not available
URL: <https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20140923/23e39cd4/attachment.bin>


More information about the MPlayer-dev-eng mailing list