源:http://forum.videolan.org/viewtopic.php?f=13&t=41550
After debugging the makefile, I found that the PKG_CONFIG_PATH does not get set for x264 in the config.
so, set it before the ./configure- eg:
export PKG_CONFIG_PATH=`pwd`/extras/x264
This will just fall back to whatever version of x264 that's installed on your system. Very annoying. Hopefully this fixes my buffer underflow problem with h264.