The open function in libmpcodecs should be renamed to something else vf_open, maybe ? Even though it is defined as static, it can cause trouble whenever the open(2) prototype is included. In fact, it caused me trouble, while I was trying to instrument the real open(2) to find out where mplayer is leaking file descriptors...