Move the internal function declarations in avformat.h to internal.h.