unfinished, iam just commiting this so the functions that should be non static have prototypes. Originally committed as revision 22270 to svn://svn.ffmpeg.org/ffmpeg/trunk