Split libvpx check into decoder and encoder check.
This allows using a libvpx that has been configured as decoder/encoder only.
patch by Frank Barchard, fbarchard google com

Originally committed as revision 24742 to svn://svn.ffmpeg.org/ffmpeg/trunk
