Move metadata API from avcodec to avformat.