Moved address and socket definition for command sending from common header to drone.c. Correctly initialize avcodec.