Libav
avcodec.c

Note that this library only handles codecs (mpeg, mpeg4, etc...), not file formats (avi, vob, etc...). See library 'libavformat' for the format handling